mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
406 B
TypeScript
19 lines
406 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @strict: true
|
|
// @target: es6
|
|
// @outDir: ./out
|
|
// @filename: declarations.d.ts
|
|
declare var module: {
|
|
exports: {
|
|
[key: string]: any;
|
|
};
|
|
}
|
|
// @filename: elementAccessExpressionInJS.js
|
|
if (module[calculatePropertyName(1)]) {
|
|
}
|
|
function calculatePropertyName(index) {
|
|
// this would be some webpack index in real life
|
|
return `property${index}`;
|
|
}
|