Installation
npm install --save @types/string-template
Summary
This package contains type definitions for string-template (https://www.npmjs.com/package/string-template).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/string-template.
declare namespace StringTemplate {
interface Format {
(string: string, object: any): string;
(string: string, array: any[]): string;
(string: string, ...array: any[]): string;
(string: string): string;
}
interface Compile {
(string: string, inline?: boolean): Template;
}
interface Template {
(object: any): string;
(array: any[]): string;
(...array: any[]): string;
}
}
declare module "string-template" {
const format: StringTemplate.Format;
export = format;
}
declare module "string-template/compile" {
const comile: StringTemplate.Compile;
export = comile;
}
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:24 GMT
- Dependencies: none
Credits
These definitions were written by TonyYang.