@visulima/fmt 1.1.18 → 1.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,11 +1,8 @@
1
- declare const format: (fmt: Record<string, any> | string, arguments_?: any[], options?: Options) => string;
2
- declare const build: (options?: Options) => (f: NonNullable<Record<string, any> | string>, arguments_?: any[], formatOptions?: Omit<Options, "formatters">) => string;
3
- type FormatterFunction = (argument: any) => string;
4
- type FormatterMap = Record<number, FormatterFunction>;
5
- interface Options {
1
+ export declare const format: (fmt: Record<string, any> | string, arguments_?: any[], options?: Options) => string;
2
+ export declare const build: (options?: Options) => (f: NonNullable<Record<string, any> | string>, arguments_?: any[], formatOptions?: Omit<Options, "formatters">) => string;
3
+ export type FormatterFunction = (argument: any) => string;
4
+ export type FormatterMap = Record<number, FormatterFunction>;
5
+ export interface Options {
6
6
  formatters?: Record<string, FormatterFunction>;
7
7
  stringify?: (o: any) => string;
8
8
  }
9
-
10
- export { build, format };
11
- export type { FormatterFunction, FormatterMap, Options };
package/dist/index.d.mts CHANGED
@@ -1,11 +1,8 @@
1
- declare const format: (fmt: Record<string, any> | string, arguments_?: any[], options?: Options) => string;
2
- declare const build: (options?: Options) => (f: NonNullable<Record<string, any> | string>, arguments_?: any[], formatOptions?: Omit<Options, "formatters">) => string;
3
- type FormatterFunction = (argument: any) => string;
4
- type FormatterMap = Record<number, FormatterFunction>;
5
- interface Options {
1
+ export declare const format: (fmt: Record<string, any> | string, arguments_?: any[], options?: Options) => string;
2
+ export declare const build: (options?: Options) => (f: NonNullable<Record<string, any> | string>, arguments_?: any[], formatOptions?: Omit<Options, "formatters">) => string;
3
+ export type FormatterFunction = (argument: any) => string;
4
+ export type FormatterMap = Record<number, FormatterFunction>;
5
+ export interface Options {
6
6
  formatters?: Record<string, FormatterFunction>;
7
7
  stringify?: (o: any) => string;
8
8
  }
9
-
10
- export { build, format };
11
- export type { FormatterFunction, FormatterMap, Options };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,8 @@
1
- declare const format: (fmt: Record<string, any> | string, arguments_?: any[], options?: Options) => string;
2
- declare const build: (options?: Options) => (f: NonNullable<Record<string, any> | string>, arguments_?: any[], formatOptions?: Omit<Options, "formatters">) => string;
3
- type FormatterFunction = (argument: any) => string;
4
- type FormatterMap = Record<number, FormatterFunction>;
5
- interface Options {
1
+ export declare const format: (fmt: Record<string, any> | string, arguments_?: any[], options?: Options) => string;
2
+ export declare const build: (options?: Options) => (f: NonNullable<Record<string, any> | string>, arguments_?: any[], formatOptions?: Omit<Options, "formatters">) => string;
3
+ export type FormatterFunction = (argument: any) => string;
4
+ export type FormatterMap = Record<number, FormatterFunction>;
5
+ export interface Options {
6
6
  formatters?: Record<string, FormatterFunction>;
7
7
  stringify?: (o: any) => string;
8
8
  }
9
-
10
- export { build, format };
11
- export type { FormatterFunction, FormatterMap, Options };