You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
353 B
TypeScript

export declare type Template<T extends object> = (data: T) => string;
/**
* Stringify a template into a function.
*/
export declare function compile(value: string, displayName?: string): string;
/**
* Fast and simple string templates.
*/
export declare function template<T extends object = object>(value: string, displayName?: string): Template<T>;