timepiece/node_modules/date-fns/locale/_lib/buildFormatLongFn.d.mts

15 lines
464 B
TypeScript
Raw Normal View History

2024-05-14 14:54:12 +00:00
import type { FormatLongFn, FormatLongWidth } from "../types.js";
export interface BuildFormatLongFnArgs<
DefaultMatchWidth extends FormatLongWidth,
> {
formats: Partial<{
[format in FormatLongWidth]: string;
}> & {
[format in DefaultMatchWidth]: string;
};
defaultWidth: DefaultMatchWidth;
}
export declare function buildFormatLongFn<
DefaultMatchWidth extends FormatLongWidth,
>(args: BuildFormatLongFnArgs<DefaultMatchWidth>): FormatLongFn;