mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-25 08:06:22 +08:00
18 lines
527 B
TypeScript
18 lines
527 B
TypeScript
// Type definitions for uri-templates 0.1.2
|
|
// Project: https://github.com/geraintluff/uri-templates
|
|
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
declare function utpl(template: string): utpl.URITemplate;
|
|
|
|
declare namespace utpl {
|
|
export interface URITemplate {
|
|
fillFromObject(vars: Object): string;
|
|
fill(callback: (varName: string) => string): string;
|
|
fromUri(uri: string): Object;
|
|
}
|
|
}
|
|
|
|
export = utpl;
|