@types/uri-template-lite
Version:
TypeScript definitions for uri-template-lite
14 lines (10 loc) • 328 B
TypeScript
declare class Template {
constructor(template: string);
expand(data: { [key: string]: unknown }): string;
match(uri: string): { [key: string]: string };
}
declare function expand(template: string, data: { [key: string]: unknown }): string;
declare namespace Template {
export { expand };
}
export = Template;