UNPKG

@types/uri-templates

Version:
34 lines (26 loc) 1.19 kB
# Installation > `npm install --save @types/uri-templates` # Summary This package contains type definitions for uri-templates (https://github.com/geraintluff/uri-templates). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uri-templates. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uri-templates/index.d.ts) ````ts declare function utpl(template: string): utpl.URITemplate; declare namespace utpl { export interface URITemplate { fillFromObject(vars: { [key: string]: string | { [key: string]: string } }): string; fill(callback: (varName: string) => string): string; fill(vars: { [key: string]: string | { [key: string]: string } }): string; fromUri(uri: string): { [key: string]: string } | undefined; varNames: string[]; template: string; } } export = utpl; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 15:11:36 GMT * Dependencies: none # Credits These definitions were written by [Bart van der Schoor](https://github.com/Bartvds), and [Bartek Szczepański](https://github.com/barnski).