mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
908 B
TypeScript
30 lines
908 B
TypeScript
//// [tests/cases/compiler/declFileAliasUseBeforeDeclaration.ts] ////
|
|
|
|
//// [declFileAliasUseBeforeDeclaration_foo.ts]
|
|
export class Foo { }
|
|
|
|
//// [declFileAliasUseBeforeDeclaration_test.ts]
|
|
export function bar(a: foo.Foo) { }
|
|
import foo = require("./declFileAliasUseBeforeDeclaration_foo");
|
|
|
|
//// [declFileAliasUseBeforeDeclaration_foo.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Foo = void 0;
|
|
class Foo {
|
|
}
|
|
exports.Foo = Foo;
|
|
//// [declFileAliasUseBeforeDeclaration_test.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.bar = bar;
|
|
function bar(a) { }
|
|
|
|
|
|
//// [declFileAliasUseBeforeDeclaration_foo.d.ts]
|
|
export declare class Foo {
|
|
}
|
|
//// [declFileAliasUseBeforeDeclaration_test.d.ts]
|
|
export declare function bar(a: foo.Foo): void;
|
|
import foo = require("./declFileAliasUseBeforeDeclaration_foo");
|