diff --git a/packages/io-ts-http/src/httpRequest.ts b/packages/io-ts-http/src/httpRequest.ts index fdb8b806..391972d4 100644 --- a/packages/io-ts-http/src/httpRequest.ts +++ b/packages/io-ts-http/src/httpRequest.ts @@ -37,21 +37,17 @@ type EmitOutputTypeErrors< : { [K in keyof P & string]: P[K] extends t.Type ? P[K] - : `Codec's output type is not assignable to ${OName}. Try using one like \`NumberFromString\``; + : `Codec's output type is not assignable to \`${OName}\`. Try using one like \`NumberFromString\``; }; +type QueryValue = string | string[] | undefined; +type ParamValue = string | undefined; +type HeaderValue = string | undefined; + type EmitPropsErrors

= { - params?: EmitOutputTypeErrors; - query?: EmitOutputTypeErrors< - P['query'], - string | string[] | undefined, - 'string | string[] | undefined' - >; - headers?: EmitOutputTypeErrors< - P['headers'], - string | undefined, - 'string | undefined' - >; + params?: EmitOutputTypeErrors; + query?: EmitOutputTypeErrors; + headers?: EmitOutputTypeErrors; }; export function httpRequest<