File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -464,12 +464,3 @@ export type inferParserType<Input> =
464
464
: Input extends Record < string , ParserBuilder < any > >
465
465
? inferParserRecordType < Input >
466
466
: never
467
-
468
- type inferSingleSerializerType < Parser > =
469
- Parser extends ParserBuilder < infer Value > ? Value | null : never
470
-
471
- export type inferSerializerRecordType <
472
- Map extends Record < string , ParserBuilder < any > >
473
- > = {
474
- [ Key in keyof Map ] : inferSingleSerializerType < Map [ Key ] >
475
- }
Original file line number Diff line number Diff line change 1
1
import type { Options } from './defs'
2
- import type { inferSerializerRecordType , ParserBuilder } from './parsers'
2
+ import type { ParserBuilder } from './parsers'
3
3
import { renderQueryString } from './url-encoding'
4
4
5
5
type Base = string | URLSearchParams | URL
6
6
type ParserWithOptionalDefault < T > = ParserBuilder < T > & { defaultValue ?: T }
7
7
8
+ type inferSingleSerializerType < Parser > =
9
+ Parser extends ParserBuilder < infer Value > ? Value | null : never
10
+
11
+ export type inferSerializerRecordType <
12
+ Map extends Record < string , ParserBuilder < any > >
13
+ > = {
14
+ [ Key in keyof Map ] : inferSingleSerializerType < Map [ Key ] >
15
+ }
16
+
8
17
export function createSerializer <
9
18
Parsers extends Record < string , ParserWithOptionalDefault < any > >
10
19
> (
You can’t perform that action at this time.
0 commit comments