swc/crates/swc_ecma_parser/tests/tsc/commonJSAliasedExport.ts
2022-02-04 17:08:38 +09:00

19 lines
368 B
TypeScript

// @checkJs: true
// @outdir: out/
// @declaration: true
// @Filename: commonJSAliasedExport.js
const donkey = (ast) => ast;
function funky(declaration) {
return false;
}
module.exports = donkey;
module.exports.funky = funky;
// @Filename: bug43713.js
const { funky } = require('./commonJSAliasedExport');
/** @type {boolean} */
var diddy
var diddy = funky(1)