Logo
Explore Help
Register Sign In
glyphdiff.com/frontend-svelte
1
0
Fork 0
You've already forked frontend-svelte
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
614d6b06737566f793f497c0c2cb966a040215d1
frontend-svelte/src/shared/lib/utils/index.ts

18 lines
378 B
TypeScript
Raw Normal View History

feat(utils): add generic buildQueryString utility - Add type-safe buildQueryString function to /utils - Support primitives, arrays, and optional values - Proper URL encoding for special characters - Add comprehensive tests (25 test cases, all passing) - Update Google Fonts API client to use shared utility - Update Fontshare API client to use shared utility - Export utility from /utils/index.ts Benefits: - DRY - Single source of truth for query string logic - Type-safe - Proper TypeScript support with QueryParams type - Tested - Comprehensive test coverage - Maintainable - One place to fix bugs
2026-01-06 15:00:31 +03:00
/**
* Shared utility functions
*/
export { buildQueryString } from './buildQueryString';
export type {
QueryParams,
QueryParamValue,
} from './buildQueryString';
refactor(createFilterStore): move from store pattern to svelte 5 runes usage
2026-01-07 14:26:37 +03:00
export {
createVirtualizer,
type Virtualizer,
} from './createVirtualizer/createVirtualizer.svelte';
export {
createFilter,
type Filter,
} from './filter/createFilter/createFilter.svelte';
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 1118ms Template: 103ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API