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

2.1.4 • 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

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: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/qs

Credits

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

Readme

Keywords

none

Package Sidebar

Install

npm i @types/url-assembler

Weekly Downloads

1,287

Version

2.1.4

License

MIT

Unpacked Size

4.65 kB

Total Files

5

Last publish

Collaborators

  • types