Skip to content

Commit 83f3d2e

Browse files
committed
Add regression test
1 parent cc2ea68 commit 83f3d2e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
declare const fn: <K extends string, V>(object: { [Key in K]: V }) => object;
22
declare const a: { [index: string]: number };
33
fn(a);
4+
5+
// Repro from #30218
6+
7+
declare function enumValues<K extends string, V extends string>(e: Record<K, V>): V[];
8+
9+
enum E { A = 'foo', B = 'bar' }
10+
11+
let x: E[] = enumValues(E);

0 commit comments

Comments
 (0)