Files
tsgo/testdata/baselines/reference/submodule/compiler/exportAssignmentMembersVisibleInAugmentation.js

35 lines
668 B
TypeScript

//// [tests/cases/compiler/exportAssignmentMembersVisibleInAugmentation.ts] ////
//// [index.d.ts]
export = foo;
declare namespace foo {
export type T = number;
}
//// [a.ts]
import * as foo from "foo";
declare module "foo" {
export function f(): T; // OK
}
//// [b.ts]
import * as foo from "foo";
declare module "foo" {
export function g(): foo.T; // OK
}
//// [a.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//// [b.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//// [b.d.ts]
import * as foo from "foo";
declare module "foo" {
function g(): foo.T;
}