Skip to content

Commit cfbeb73

Browse files
committed
add test case
1 parent d3f0908 commit cfbeb73

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// @strict: true
2+
3+
// https://github.com/microsoft/TypeScript/issues/62325
4+
5+
//// type RequiredKeys<T extends object> = {
6+
//// [K in keyof Required<T>]: T[K];
7+
//// };
8+
////
9+
//// type Foo = {
10+
//// a?: string;
11+
//// b?: number;
12+
//// c: string;
13+
//// d: boolean | undefined;
14+
//// };
15+
////
16+
//// type Bar/*1*/ = RequiredKeys<Foo>;
17+
18+
verify.quickInfoAt("1", `type Bar = {
19+
a: string | undefined;
20+
b: number | undefined;
21+
c: string;
22+
d: boolean | undefined;
23+
}`);

0 commit comments

Comments
 (0)