mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
35 lines
668 B
TypeScript
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;
|
|
}
|