2.1.4 • Published 6 months ago

@types/url-assembler v2.1.4

Weekly downloads
652
License
MIT
Repository
github
Last release
6 months ago

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;
    pathname: string;
}

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, 28 Feb 2022 19:01:45 GMT
  • Dependencies: @types/qs
  • Global values: none

Credits

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

2.1.2

8 months ago

2.1.4

6 months ago

2.1.3

7 months ago

2.1.1

2 years ago

2.1.0

3 years ago

1.2.2

4 years ago

1.2.1

5 years ago

1.2.0

7 years ago