TypeScript/tests/cases/conformance/salsa/typeFromPropertyAssignment37.ts

16 lines
289 B
TypeScript

// @noEmit: true
// @allowJs: true
// @checkJs: true
// @Filename: mod.js
const util = exports = module.exports = {}
if (!!false) {
util.existy = function () { }
}
// @Filename: use.js
const util = require('./mod')
function n() {
util.existy // no error
}
util.existy // no error