We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3f0908 commit cfbeb73Copy full SHA for cfbeb73
1 file changed
tests/cases/fourslash/quickInfoMappedPropertyUnionUndefined5.ts
@@ -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