mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
646 B
Plaintext
23 lines
646 B
Plaintext
/a.ts(3,26): error TS4060: Return type of exported function has or is using private name 'T'.
|
|
|
|
|
|
==== /node_modules/foo/index.d.ts (0 errors) ====
|
|
export = foo;
|
|
declare namespace foo {
|
|
export type T = number;
|
|
}
|
|
|
|
==== /a.ts (1 errors) ====
|
|
import * as foo from "foo";
|
|
declare module "foo" {
|
|
export function f(): T; // OK
|
|
~
|
|
!!! error TS4060: Return type of exported function has or is using private name 'T'.
|
|
}
|
|
|
|
==== /b.ts (0 errors) ====
|
|
import * as foo from "foo";
|
|
declare module "foo" {
|
|
export function g(): foo.T; // OK
|
|
}
|
|
|