8 lines
203 B
JavaScript
8 lines
203 B
JavaScript
|
//// [indexer3.ts]
|
||
|
var dateMap: { [x: string]: Date; } = {}
|
||
|
var r: Date = dateMap["hello"] // result type includes indexer using BCT
|
||
|
|
||
|
//// [indexer3.js]
|
||
|
var dateMap = {};
|
||
|
var r = dateMap["hello"];
|