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
9abec4210c1b7632b6ec026d792b0ee507e19035
frontend-svelte/src/shared/utils/index.ts

10 lines
173 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';
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 817ms Template: 4ms
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