reference to ''../../middle-lib/node_modules/base-lib/dist/index.js'. This is likely not portable. A type annotation is necessary. ts(2742) 'returnValue' の推論された型には、'../../middle-lib/node_modules/base- lib/dist/index.js' への参照なしで名前を付けることはできません。これは、移植性がない可能性 があります。型の注釈が必要です。ts(2742) ? | 4 of 20
from "middle-lib"; import type { SomeComplexType } from "../node_modules/middle-lib/node_modules/base-lib/index.js"; export const mainValue: SomeComplexType; import { getBaseLibValue } from "middle-lib"; import type { SomeComplexType } from "middle-lib/node_modules/base-lib/index.js"; export const mainValue: SomeComplexType; | 11 of 20