37 lines
790 B
JavaScript
37 lines
790 B
JavaScript
//// [tests/cases/compiler/unusedImportDeclaration.ts] ////
|
|
|
|
//// [unusedImportDeclaration_testerB.ts]
|
|
class TesterB {
|
|
me: string;
|
|
}
|
|
export = TesterB;
|
|
|
|
//// [unusedImportDeclaration_testerA.ts]
|
|
import B = require("unusedImportDeclaration_testerB");
|
|
var thingy: B = {
|
|
me: "A"
|
|
};
|
|
declare function foo(a: string): void;
|
|
foo("IN " + thingy.me + "!");
|
|
|
|
|
|
//// [unusedImportDeclaration_testerB.js]
|
|
var TesterB = (function () {
|
|
function TesterB() {
|
|
}
|
|
return TesterB;
|
|
})();
|
|
module.exports = TesterB;
|
|
//// [unusedImportDeclaration_testerA.js]
|
|
var thingy = {
|
|
me: "A"
|
|
};
|
|
foo("IN " + thingy.me + "!");
|
|
|
|
|
|
//// [unusedImportDeclaration_testerB.d.ts]
|
|
declare class TesterB {
|
|
me: string;
|
|
}
|
|
export = TesterB;
|
|
//// [unusedImportDeclaration_testerA.d.ts]
|