|
| 1 | +/packages/a/index.ts(2,14): error TS2883: The inferred type of 'thing' cannot be named without a reference to 'Thing' from '../s/node_modules/c-pattern/dist/Thing.js'. This is likely not portable. A type annotation is necessary. |
| 2 | +/packages/a/index.ts(2,14): error TS2883: The inferred type of 'thing' cannot be named without a reference to 'Thing' from '../s/node_modules/c-root/dist/Thing.js'. This is likely not portable. A type annotation is necessary. |
| 3 | +/packages/a/index.ts(2,14): error TS2883: The inferred type of 'thing' cannot be named without a reference to 'Thing' from '../s/node_modules/c-subpath/dist/Thing.js'. This is likely not portable. A type annotation is necessary. |
| 4 | + |
| 5 | + |
| 6 | +==== /node_modules/.store/c-root/node_modules/c-root/package.json (0 errors) ==== |
| 7 | + { "name": "c-root", "version": "1.0.0", "type": "module", "exports": { ".": "./dist/Thing.d.ts" } } |
| 8 | +==== /node_modules/.store/c-root/node_modules/c-root/dist/Thing.d.ts (0 errors) ==== |
| 9 | + export interface Thing { readonly x: number; } |
| 10 | + export declare const create: () => Thing; |
| 11 | + |
| 12 | +==== /node_modules/.store/c-subpath/node_modules/c-subpath/package.json (0 errors) ==== |
| 13 | + { "name": "c-subpath", "version": "1.0.0", "type": "module", "exports": { "./Thing": { "types": "./dist/Thing.d.ts", "default": "./dist/Thing.js" } } } |
| 14 | +==== /node_modules/.store/c-subpath/node_modules/c-subpath/dist/Thing.d.ts (0 errors) ==== |
| 15 | + export interface Thing { readonly x: number; } |
| 16 | + export declare const create: () => Thing; |
| 17 | + |
| 18 | +==== /node_modules/.store/c-pattern/node_modules/c-pattern/package.json (0 errors) ==== |
| 19 | + { "name": "c-pattern", "version": "1.0.0", "type": "module", "exports": { "./*": "./dist/*.d.ts" } } |
| 20 | +==== /node_modules/.store/c-pattern/node_modules/c-pattern/dist/Thing.d.ts (0 errors) ==== |
| 21 | + export interface Thing { readonly x: number; } |
| 22 | + export declare const create: () => Thing; |
| 23 | + |
| 24 | +==== /packages/s/package.json (0 errors) ==== |
| 25 | + { "name": "s", "type": "module", "exports": "./index.d.ts" } |
| 26 | +==== /packages/s/index.d.ts (0 errors) ==== |
| 27 | + import { create as createRoot } from "c-root"; |
| 28 | + import { create as createSubpath } from "c-subpath/Thing"; |
| 29 | + import { create as createPattern } from "c-pattern/Thing"; |
| 30 | + export declare const root: ReturnType<typeof createRoot>; |
| 31 | + export declare const subpath: ReturnType<typeof createSubpath>; |
| 32 | + export declare const pattern: ReturnType<typeof createPattern>; |
| 33 | + |
| 34 | +==== /packages/a/package.json (0 errors) ==== |
| 35 | + { "name": "a", "type": "module" } |
| 36 | +==== /packages/a/index.ts (3 errors) ==== |
| 37 | + import { root, subpath, pattern } from "s"; |
| 38 | + export const thing = { root, subpath, pattern }; |
| 39 | + ~~~~~ |
| 40 | +!!! error TS2883: The inferred type of 'thing' cannot be named without a reference to 'Thing' from '../s/node_modules/c-pattern/dist/Thing.js'. This is likely not portable. A type annotation is necessary. |
| 41 | + ~~~~~ |
| 42 | +!!! error TS2883: The inferred type of 'thing' cannot be named without a reference to 'Thing' from '../s/node_modules/c-root/dist/Thing.js'. This is likely not portable. A type annotation is necessary. |
| 43 | + ~~~~~ |
| 44 | +!!! error TS2883: The inferred type of 'thing' cannot be named without a reference to 'Thing' from '../s/node_modules/c-subpath/dist/Thing.js'. This is likely not portable. A type annotation is necessary. |
| 45 | + |
| 46 | +==== /packages/s/reachable.ts (0 errors) ==== |
| 47 | + import { root, subpath, pattern } from "./index.js"; |
| 48 | + export const thing = { root, subpath, pattern }; |
| 49 | + |
| 50 | + |
0 commit comments