gcanti / io-ts

Runtime type system for IO decoding/encoding
https://gcanti.github.io/io-ts/
MIT License
6.68k stars 331 forks source link

With Angular 15.x it's giving following error #712

Open learneradarsh opened 3 months ago

learneradarsh commented 3 months ago

Error: ../types/node_modules/io-ts/lib/index.d.ts:1412:29 - error TS2344: Type 'P' does not satisfy the constraint 'Exact<P, P>'. Type 'P' is not assignable to type '{ [K in ({ [K in keyof P]: K; } & { [K in keyof P]: never; } & { [key: string]: never; })[keyof P]]?: undefined; }'.

1412 PP extends Exact<P, PP> = P, ~

../types/node_modules/io-ts/lib/index.d.ts:1407:37 1407 export declare function alias<A, O, P, I>( ~ This type parameter might need an extends { [K in ({ [K in keyof P]: K; } & { [K in keyof P]: never; } & { [key: string]: never; })[keyof P]]?: undefined; } constraint.

Error: ../types/node_modules/io-ts/lib/index.d.ts:1419:29 - error TS2344: Type 'O' does not satisfy the constraint 'Exact<O, O>'. Type 'O' is not assignable to type '{ [K in ({ [K in keyof O]: K; } & { [K in keyof O]: never; } & { [key: string]: never; })[keyof O]]?: undefined; }'.