UNPKG

@thi.ng/strings

Version:

Various string formatting & utility functions

21 lines 538 B
export declare const format: (fmt: any[], ...args: any[]) => string; /** * HOF version of {@link format}. * * @param fmt - */ export declare const defFormat: (fmt: any[]) => (...args: any[]) => string; /** * Helper for {@link format} which ignores argument and always returns * an empty string. * * @param _ - */ export declare const ignore: (_: any) => string; /** * Helper for {@link format} which coerces `x` to a string. * * @param x - */ export declare const str: (x: any) => string; //# sourceMappingURL=format.d.ts.map