swc/crates/swc_ecma_parser/tests/tsc/jsContainerMergeTsDeclaration2.ts

11 lines
171 B
TypeScript

// @noEmit: true
// @allowJs: true
// @checkJs: true
// @Filename: a.d.ts
declare namespace C {
function bar(): void
}
// @Filename: b.js
C.prototype = {};
C.bar = 2;