Installation
npm install --save @types/string-format
Summary
This package contains type definitions for string-format (https://github.com/davidchambers/string-format).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/string-format.
declare function Format(template: string, ...args: Array<({ [k: string]: any } | string)>): string;
interface Transformers {
[k: string]: (s: any) => string;
}
declare namespace Format {
function create(transformers: Transformers): typeof Format;
function extend(prototype: any, transformers: Transformers): void;
}
export = Format;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Luca Lindhorst.