File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
tests/baselines/reference Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -66,3 +66,45 @@ var N2;
66
66
} ) ( N2 || ( N2 = { } ) ) ;
67
67
var e = E . ONE ;
68
68
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 ;
You can’t perform that action at this time.
0 commit comments