Files
frontend-svelte/src/shared/lib/utils/index.ts

24 lines
864 B
TypeScript
Raw Normal View History

/**
* Shared utility functions
*
* Provides common utilities for:
* - Number manipulation (clamping, precision, decimal places)
* - Function execution control (debounce, throttle)
* - Array operations (split by predicate)
* - URL handling (query string building)
* - DOM interactions (smooth scrolling)
*/
export {
2026-01-07 16:54:19 +03:00
buildQueryString,
type QueryParams,
type QueryParamValue,
} from './buildQueryString/buildQueryString';
export { clampNumber } from './clampNumber/clampNumber';
export { debounce } from './debounce/debounce';
2026-01-07 16:54:19 +03:00
export { getDecimalPlaces } from './getDecimalPlaces/getDecimalPlaces';
export { roundToStepPrecision } from './roundToStepPrecision/roundToStepPrecision';
2026-02-10 21:15:52 +03:00
export { smoothScroll } from './smoothScroll/smoothScroll';
2026-01-18 14:39:38 +03:00
export { splitArray } from './splitArray/splitArray';
2026-02-12 10:30:43 +03:00
export { throttle } from './throttle/throttle';