svelte-ux
Version:
- Increment version in `package.json` and commit as `Version bump to x.y.z` - `npm run publish`
8 lines (7 loc) • 435 B
TypeScript
import { PeriodType } from './date';
import type { FormatNumberStyle } from './number';
export type FormatType = FormatNumberStyle | PeriodType | ((value: any, ...extraArgs: any[]) => any);
/**
* Generic format which can handle Dates, Numbers, or custom format function
*/
export declare function format(value: any, format?: FormatNumberStyle | PeriodType | ((value: any, ...extraArgs: any[]) => any), ...extraFuncArgs: any[]): any;