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

    2.1.0 • Public • Published

    Installation

    npm install --save @types/url-assembler

    Summary

    This package contains type definitions for url-assembler (https://github.com/Floby/node-url-assembler).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/url-assembler.

    index.d.ts

    // Type definitions for url-assembler 2.1
    // Project: https://github.com/Floby/node-url-assembler
    // Definitions by: Wolfgang Faust <https://github.com/wolfgang42>
    //                 Alice Pote <https://github.com/alicewriteswrongs>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    import * as qs from 'qs';
    
    interface UrlAssembler {
        template(template: string): UrlAssembler;
        prefix(subPath: string): UrlAssembler;
        segment(subPathTemplate: string): UrlAssembler;
        param(key: string, value: string, strict?: boolean): UrlAssembler;
        param(params: { [s: string]: any }, strict?: boolean): UrlAssembler;
        query(key: string, value: any): UrlAssembler;
        query(params: { [s: string]: any }): UrlAssembler;
        toString(): string;
        valueOf(): string;
        toJSON(): string;
        qsConfig(config: qs.IStringifyOptions): UrlAssembler;
    }
    
    interface UrlAssemblerConstructor {
        (baseUrl?: string): UrlAssembler;
        (urlAssembler: UrlAssembler): UrlAssembler;
        new (baseUrl?: string): UrlAssembler;
        new (urlAssembler: UrlAssembler): UrlAssembler;
    }
    
    declare const UrlAssembler: UrlAssemblerConstructor;
    
    export = UrlAssembler;

    Additional Details

    • Last updated: Mon, 04 Oct 2021 02:31:24 GMT
    • Dependencies: @types/qs
    • Global values: none

    Credits

    These definitions were written by Wolfgang Faust, and Alice Pote.

    Keywords

    none

    Install

    npm i @types/url-assembler

    DownloadsWeekly Downloads

    1,589

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    5.24 kB

    Total Files

    4

    Last publish

    Collaborators

    • types