@types/uri-templates
TypeScript icon, indicating that this package has built-in type declarations

0.1.34 • Public • Published

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 15:11:36 GMT
  • Dependencies: none

Credits

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

Readme

Keywords

none

Package Sidebar

Install

npm i @types/uri-templates

Weekly Downloads

5,634

Version

0.1.34

License

MIT

Unpacked Size

3.8 kB

Total Files

5

Last publish

Collaborators

  • types