@@ -82,3 +82,67 @@ const created2 = create({
82
82
83
83
});
84
84
85
+ interface CompilerOptions {
86
+ >CompilerOptions : Symbol(CompilerOptions, Decl(reverseMappedTupleContext.ts, 21, 3))
87
+
88
+ allowUnreachableCode?: boolean;
89
+ >allowUnreachableCode : Symbol(CompilerOptions.allowUnreachableCode, Decl(reverseMappedTupleContext.ts, 23, 27))
90
+
91
+ allowUnusedLabels?: boolean;
92
+ >allowUnusedLabels : Symbol(CompilerOptions.allowUnusedLabels, Decl(reverseMappedTupleContext.ts, 24, 33))
93
+
94
+ alwaysStrict?: boolean;
95
+ >alwaysStrict : Symbol(CompilerOptions.alwaysStrict, Decl(reverseMappedTupleContext.ts, 25, 30))
96
+ }
97
+ type KeepLiteralStrings<T extends string[]> = {
98
+ >KeepLiteralStrings : Symbol(KeepLiteralStrings, Decl(reverseMappedTupleContext.ts, 27, 1))
99
+ >T : Symbol(T, Decl(reverseMappedTupleContext.ts, 28, 24))
100
+
101
+ [K in keyof T]: T[K];
102
+ >K : Symbol(K, Decl(reverseMappedTupleContext.ts, 29, 3))
103
+ >T : Symbol(T, Decl(reverseMappedTupleContext.ts, 28, 24))
104
+ >T : Symbol(T, Decl(reverseMappedTupleContext.ts, 28, 24))
105
+ >K : Symbol(K, Decl(reverseMappedTupleContext.ts, 29, 3))
106
+
107
+ };
108
+ declare function test4<T extends Record<string, string[]>>(obj: {
109
+ >test4 : Symbol(test4, Decl(reverseMappedTupleContext.ts, 30, 2))
110
+ >T : Symbol(T, Decl(reverseMappedTupleContext.ts, 31, 23))
111
+ >Record : Symbol(Record, Decl(lib.es5.d.ts, --, --))
112
+ >obj : Symbol(obj, Decl(reverseMappedTupleContext.ts, 31, 59))
113
+
114
+ [K in keyof T & keyof CompilerOptions]: {
115
+ >K : Symbol(K, Decl(reverseMappedTupleContext.ts, 32, 3))
116
+ >T : Symbol(T, Decl(reverseMappedTupleContext.ts, 31, 23))
117
+ >CompilerOptions : Symbol(CompilerOptions, Decl(reverseMappedTupleContext.ts, 21, 3))
118
+
119
+ dependencies: KeepLiteralStrings<T[K]>;
120
+ >dependencies : Symbol(dependencies, Decl(reverseMappedTupleContext.ts, 32, 43))
121
+ >KeepLiteralStrings : Symbol(KeepLiteralStrings, Decl(reverseMappedTupleContext.ts, 27, 1))
122
+ >T : Symbol(T, Decl(reverseMappedTupleContext.ts, 31, 23))
123
+ >K : Symbol(K, Decl(reverseMappedTupleContext.ts, 32, 3))
124
+
125
+ };
126
+ }): T;
127
+ >T : Symbol(T, Decl(reverseMappedTupleContext.ts, 31, 23))
128
+
129
+ const result4 = test4({
130
+ >result4 : Symbol(result4, Decl(reverseMappedTupleContext.ts, 36, 5))
131
+ >test4 : Symbol(test4, Decl(reverseMappedTupleContext.ts, 30, 2))
132
+
133
+ alwaysStrict: {
134
+ >alwaysStrict : Symbol(alwaysStrict, Decl(reverseMappedTupleContext.ts, 36, 23))
135
+
136
+ dependencies: ["foo", "bar"],
137
+ >dependencies : Symbol(dependencies, Decl(reverseMappedTupleContext.ts, 37, 17))
138
+
139
+ },
140
+ allowUnusedLabels: {
141
+ >allowUnusedLabels : Symbol(allowUnusedLabels, Decl(reverseMappedTupleContext.ts, 39, 4))
142
+
143
+ dependencies: ["baz", "qwe"],
144
+ >dependencies : Symbol(dependencies, Decl(reverseMappedTupleContext.ts, 40, 22))
145
+
146
+ },
147
+ });
148
+
0 commit comments