prettier/tests/typescript/compiler/mappedTypeWithCombinedTypeM...

19 lines
312 B
TypeScript

// Repro from #13351
type Meta<T, A> = {
[P in keyof T]: {
value: T[P];
also: A;
readonly children: Meta<T[P], A>;
};
}
interface Input {
x: string;
y: number;
}
declare const output: Meta<Input, boolean>;
const shouldFail: { important: boolean } = output.x.children;