buildFormatLongFn.d.cts 464 B

1234567891011121314
  1. import type { FormatLongFn, FormatLongWidth } from "../types.js";
  2. export interface BuildFormatLongFnArgs<
  3. DefaultMatchWidth extends FormatLongWidth,
  4. > {
  5. formats: Partial<{
  6. [format in FormatLongWidth]: string;
  7. }> & {
  8. [format in DefaultMatchWidth]: string;
  9. };
  10. defaultWidth: DefaultMatchWidth;
  11. }
  12. export declare function buildFormatLongFn<
  13. DefaultMatchWidth extends FormatLongWidth,
  14. >(args: BuildFormatLongFnArgs<DefaultMatchWidth>): FormatLongFn;