Skip to content

Commit 50a6002

Browse files
committed
Accept new baselines
1 parent 7e07669 commit 50a6002

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

tests/baselines/reference/numericEnumMappedType.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,45 @@ var N2;
6666
})(N2 || (N2 = {}));
6767
var e = E.ONE;
6868
var x = e;
69+
70+
71+
//// [numericEnumMappedType.d.ts]
72+
declare enum E1 {
73+
ONE = 0,
74+
TWO = 1,
75+
THREE = 2
76+
}
77+
declare enum E2 {
78+
ONE,
79+
TWO,
80+
THREE
81+
}
82+
declare type Bins1 = {
83+
[k in E1]?: string;
84+
};
85+
declare type Bins2 = {
86+
[k in E2]?: string;
87+
};
88+
declare const b1: Bins1;
89+
declare const b2: Bins2;
90+
declare const e1: E1;
91+
declare const e2: E2;
92+
declare function val(): number;
93+
declare enum N1 {
94+
A,
95+
B
96+
}
97+
declare enum N2 {
98+
C,
99+
D
100+
}
101+
declare type T1 = {
102+
[K in N1 | N2]: K;
103+
};
104+
declare enum E {
105+
ONE = 0,
106+
TWO = 1,
107+
THREE = "x"
108+
}
109+
declare const e: E;
110+
declare const x: E.ONE;

0 commit comments

Comments
 (0)