TypeScript/tests/cases/compiler/circularConstrainedMappedTypeNoCrash.ts

3 lines
103 B
TypeScript

type Loop<T, U extends Loop<T, U>> = {
[P in keyof T]: U[P] extends boolean ? number : string;
};