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<
3737 : {
3838 [ K in keyof P & string ] : P [ K ] extends t . Type < any , O , any >
3939 ? 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 \``;
4141 } ;
4242
43+ type QueryValue = string | string [ ] | undefined ;
44+ type ParamValue = string | undefined ;
45+ type HeaderValue = string | undefined ;
46+
4347type 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' > ;
5551} ;
5652
5753export function httpRequest <
You can’t perform that action at this time.
0 commit comments