Hi, after upgrading to TypeScript 4.7 I got this error:
Error: node_modules/suretype/dist/validators/functional.d.ts:25:96 - error TS2344: Type 'T' does not satisfy the constraint '{}'.
25 export declare type AdditionalProperties<T, U> = FlattenObject<T & Record<string, U | ValuesOf<T>>>;
~
node_modules/suretype/dist/validators/functional.d.ts:25:42
25 export declare type AdditionalProperties<T, U> = FlattenObject<T & Record<string, U | ValuesOf<T>>>;
~
This type parameter might need an `extends {}` constraint.
Hi, after upgrading to TypeScript 4.7 I got this error:
I am implementing the suggested resolution.