mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
38 lines
547 B
TypeScript
38 lines
547 B
TypeScript
//// [tests/cases/conformance/salsa/requireOfESWithPropertyAccess.ts] ////
|
|
|
|
//// [main.js]
|
|
const x = require('./ch').x
|
|
x
|
|
x.grey
|
|
x.x.grey
|
|
//// [ch.js]
|
|
const x = {
|
|
grey: {}
|
|
}
|
|
export { x }
|
|
|
|
|
|
//// [ch.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.x = void 0;
|
|
const x = {
|
|
grey: {}
|
|
};
|
|
exports.x = x;
|
|
//// [main.js]
|
|
"use strict";
|
|
const x = require('./ch').x;
|
|
x;
|
|
x.grey;
|
|
x.x.grey;
|
|
|
|
|
|
//// [ch.d.ts]
|
|
declare const x: {
|
|
grey: {};
|
|
};
|
|
export { x };
|
|
//// [main.d.ts]
|
|
export {};
|