47 lines
No EOL
1.2 KiB
JavaScript
47 lines
No EOL
1.2 KiB
JavaScript
//// [tests/cases/compiler/importDeclarationUsedAsTypeQuery.ts] ////
|
|
|
|
//// [importDeclarationUsedAsTypeQuery_require.ts]
|
|
export class B {
|
|
id: number;
|
|
}
|
|
|
|
//// [importDeclarationUsedAsTypeQuery_1.ts]
|
|
///<reference path='importDeclarationUsedAsTypeQuery_require.ts'/>
|
|
import a = require('importDeclarationUsedAsTypeQuery_require');
|
|
export var x: typeof a;
|
|
|
|
|
|
//// [importDeclarationUsedAsTypeQuery_require.js]
|
|
var B = (function () {
|
|
function B() {
|
|
}
|
|
return B;
|
|
})();
|
|
exports.B = B;
|
|
//// [importDeclarationUsedAsTypeQuery_1.js]
|
|
exports.x;
|
|
|
|
|
|
//// [importDeclarationUsedAsTypeQuery_require.d.ts]
|
|
export declare class B {
|
|
id: number;
|
|
}
|
|
//// [importDeclarationUsedAsTypeQuery_1.d.ts]
|
|
/// <reference path='importDeclarationUsedAsTypeQuery_require.d.ts' />
|
|
export declare var x: typeof a;
|
|
|
|
|
|
//// [DtsFileErrors]
|
|
|
|
|
|
==== tests/cases/compiler/importDeclarationUsedAsTypeQuery_1.d.ts (1 errors) ====
|
|
/// <reference path='importDeclarationUsedAsTypeQuery_require.d.ts' />
|
|
export declare var x: typeof a;
|
|
~
|
|
!!! Cannot find name 'a'.
|
|
|
|
==== tests/cases/compiler/importDeclarationUsedAsTypeQuery_require.d.ts (0 errors) ====
|
|
export declare class B {
|
|
id: number;
|
|
}
|
|
|