npm.io
0.1.34 • Published 2 years ago

@types/uri-templates

Licence
MIT
Version
0.1.34
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Bart van der Schoor, and Bartek Szczepański.