mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
497 B
TypeScript
23 lines
497 B
TypeScript
//// [tests/cases/compiler/ambientExternalModuleInAnotherExternalModule.ts] ////
|
|
|
|
//// [ambientExternalModuleInAnotherExternalModule.ts]
|
|
class D { }
|
|
export = D;
|
|
|
|
declare module "ext" {
|
|
export class C { }
|
|
}
|
|
|
|
// Cannot resolve this ext module reference
|
|
import ext = require("ext");
|
|
var x = ext;
|
|
|
|
//// [ambientExternalModuleInAnotherExternalModule.js]
|
|
"use strict";
|
|
class D {
|
|
}
|
|
// Cannot resolve this ext module reference
|
|
const ext = require("ext");
|
|
var x = ext;
|
|
module.exports = D;
|