Innovenergy_trunk/frontend/node_modules/testcafe-safe-storage/lib/utils/template.d.ts

10 lines
475 B
TypeScript
Raw Normal View History

declare type TemplateLambda<T extends ReadonlyArray<unknown>> = (...args: T) => string;
export declare class Template<T extends ReadonlyArray<unknown>> {
private template;
protected constructor(t: TemplateLambda<T>);
static create<T extends ReadonlyArray<unknown>>(x: string | TemplateLambda<T>): Template<T>;
format(...args: T): string;
}
export declare function T<TT extends ReadonlyArray<unknown>>(x: string | TemplateLambda<TT>): Template<TT>;
export {};