- Preparing search index...
- The search index is not available
bun-types
Interface URLSearchParams
Methods
append
- append(name: string, value: string): void
-
Parameters
-
name: string
-
value: string
Returns void
- append(name: string, value: string): void
-
Parameters
-
name: string
-
value: string
Returns void
delete
- delete(name: string): void
-
Returns void
- delete(name: string): void
-
Returns void
forEach
- forEach(callbackfn: ((value: string, key: string, parent: "url".URLSearchParams) => void), thisArg?: any): void
-
Parameters
-
callbackfn: ((value: string, key: string, parent: "url".URLSearchParams) => void)
-
- (value: string, key: string, parent: "url".URLSearchParams): void
-
Parameters
-
value: string
-
key: string
-
Returns void
-
Optional
thisArg: any
Returns void
- forEach(callbackfn: ((value: string, key: string, parent: "url".URLSearchParams) => void), thisArg?: any): void
-
Parameters
-
callbackfn: ((value: string, key: string, parent: "url".URLSearchParams) => void)
-
- (value: string, key: string, parent: "url".URLSearchParams): void
-
Parameters
-
value: string
-
key: string
-
Returns void
-
Optional
thisArg: any
Returns void
get
- get(name: string): string
-
Returns string
- get(name: string): string
-
Returns string
getAll
- getAll(name: string): string[]
-
Returns string[]
- getAll(name: string): string[]
-
Returns string[]
has
- has(name: string): boolean
-
Returns boolean
- has(name: string): boolean
-
Returns boolean
set
- set(name: string, value: string): void
-
Parameters
-
name: string
-
value: string
Returns void
- set(name: string, value: string): void
-
Parameters
-
name: string
-
value: string
Returns void
sort
- sort(): void
-
Returns void
- sort(): void
-
Returns void
toString
- toString(): string
-
Returns string
- toString(): string
-
Returns string
Appends a specified key/value pair as a new search parameter.