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.