UNPKG

@types/url-search-params

Version:
42 lines (33 loc) 1.44 kB
# Installation > `npm install --save @types/url-search-params` # Summary This package contains type definitions for url-search-params (https://github.com/WebReflection/url-search-params). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/url-search-params. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/url-search-params/index.d.ts) ````ts /** * Based on definitions of lib.dom and lib.dom.iteralbe */ declare class URLSearchParams { constructor(init?: string[][] | Record<string, string> | string | URLSearchParams); append(name: string, value: string): void; delete(name: string): void; get(name: string): string | null; getAll(name: string): string[]; has(name: string): boolean; set(name: string, value: string): void; sort(): void; forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void; [Symbol.iterator](): IterableIterator<[string, string]>; entries(): IterableIterator<[string, string]>; keys(): IterableIterator<string>; values(): IterableIterator<string>; } export = URLSearchParams; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 15:11:36 GMT * Dependencies: none # Credits These definitions were written by [Nick](https://github.com/nick121212), and [Neha](https://github.com/nrathi).