Files
InvoiceShelf/resources/scripts-v2/utils/index.ts
2026-04-06 17:59:15 +02:00

32 lines
609 B
TypeScript

export {
formatMoney,
parseMoneyCents,
} from './format-money'
export type { CurrencyConfig } from './format-money'
export {
formatDate,
relativeTime,
parseDate,
isValidDate,
DEFAULT_DATE_FORMAT,
DEFAULT_DATETIME_FORMAT,
} from './format-date'
export {
get as lsGet,
set as lsSet,
remove as lsRemove,
has as lsHas,
clear as lsClear,
} from './local-storage'
export {
handleApiError,
extractValidationErrors,
getErrorTranslationKey,
} from './error-handling'
export type { NormalizedApiError } from './error-handling'
export { generateClientId } from './generate-client-id'