1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
tests/cases/conformance/declarationEmit/main.ts(1,10): error TS2305: Module '"./node_modules/ext/ts3.1"' has no exported member 'fa'.
==== tests/cases/conformance/declarationEmit/tsconfig.json (0 errors) ====
{}
==== tests/cases/conformance/declarationEmit/node_modules/ext/package.json (0 errors) ====
{
"name": "ext",
"version": "1.0.0",
"types": "index",
"typesVersions": {
">=3.1.0-0": { "*" : ["ts3.1/*"] }
}
}
==== tests/cases/conformance/declarationEmit/node_modules/ext/index.d.ts (0 errors) ====
export interface A {}
export function fa(): A;
==== tests/cases/conformance/declarationEmit/node_modules/ext/other.d.ts (0 errors) ====
export interface B {}
export function fb(): B;
==== tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index.d.ts (0 errors) ====
export * from "../";
==== tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/other.d.ts (0 errors) ====
export * from "../other";
==== tests/cases/conformance/declarationEmit/main.ts (1 errors) ====
import { fa } from "ext";
~~
!!! error TS2305: Module '"./node_modules/ext/ts3.1"' has no exported member 'fa'.
import { fb } from "ext/other";
export const va = fa();
export const vb = fb();
|