-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
33 lines (27 loc) · 949 Bytes
/
types.ts
File metadata and controls
33 lines (27 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* @file Public type surface for `url/*` modules — option interfaces consumed by
* `createRelativeUrl`, `urlSearchParamsAs*`, and `urlSearchParamsGet*`. Pure
* types, no runtime side effects.
*/
export interface AssertSafeHttpUrlOptions {
// Human-readable subject for the thrown message, e.g. 'OAuth issuer'.
label?: string | undefined
// When true, localhost / 127.0.0.1 / ::1 pass instead of being refused —
// for local-stack development only.
allowLocalhost?: boolean | undefined
}
export interface CreateRelativeUrlOptions {
base?: string | undefined
}
export interface UrlSearchParamsAsBooleanOptions {
defaultValue?: boolean | undefined
}
export interface UrlSearchParamsAsNumberOptions {
defaultValue?: number | undefined
}
export interface UrlSearchParamsAsStringOptions {
defaultValue?: string | undefined
}
export interface UrlSearchParamsGetBooleanOptions {
defaultValue?: boolean | undefined
}