File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -37,21 +37,17 @@ type EmitOutputTypeErrors<
37
37
: {
38
38
[ K in keyof P & string ] : P [ K ] extends t . Type < any , O , any >
39
39
? P [ K ]
40
- : `Codec's output type is not assignable to ${OName } . Try using one like \`NumberFromString \``;
40
+ : `Codec's output type is not assignable to \` ${OName } \` . Try using one like \`NumberFromString \``;
41
41
} ;
42
42
43
+ type QueryValue = string | string [ ] | undefined ;
44
+ type ParamValue = string | undefined ;
45
+ type HeaderValue = string | undefined ;
46
+
43
47
type EmitPropsErrors < P extends HttpRequestCombinatorProps > = {
44
- params ?: EmitOutputTypeErrors < P [ 'params' ] , string | undefined , 'string | undefined' > ;
45
- query ?: EmitOutputTypeErrors <
46
- P [ 'query' ] ,
47
- string | string [ ] | undefined ,
48
- 'string | string[] | undefined'
49
- > ;
50
- headers ?: EmitOutputTypeErrors <
51
- P [ 'headers' ] ,
52
- string | undefined ,
53
- 'string | undefined'
54
- > ;
48
+ params ?: EmitOutputTypeErrors < P [ 'params' ] , ParamValue , 'string | undefined' > ;
49
+ query ?: EmitOutputTypeErrors < P [ 'query' ] , QueryValue , 'string | string[] | undefined' > ;
50
+ headers ?: EmitOutputTypeErrors < P [ 'headers' ] , HeaderValue , 'string | undefined' > ;
55
51
} ;
56
52
57
53
export function httpRequest <
You can’t perform that action at this time.
0 commit comments