Autocomplete for types is not working in case of declarations files locate in packages of node_modules

已回答

Autocomplete for types is not working in case of declarations files locate in packages of node_modules and it exporting like this scheme:

"exports": {
".": {
"import": "./dist/commons.mjs",
"types": "./dist/commons.d.ts"
},
"./commons": {
"import": "./dist/commons.mjs",
"types": "./dist/commons.d.ts"
},
"./candlestick": {
"import": "./dist/candlestick.mjs",
"types": "./dist/candlestick.d.ts"
},
"./foundation": {
"import": "./dist/foundation.mjs",
"types": "./dist/foundation.d.ts"
}
}

This approach also described here https://www.typescriptlang.org/docs/handbook/esm-node.html and it working well in Visual Studio Code.

May be there is some options in settings that I don't know?

IntelliJ IDEA 2022.1.4 (Ultimate Edition)
Build #IU-221.6008.13, built on July 19, 2022
Licensed to AppLovin / Yuriy Roskoshinsky
You have a perpetual fallback license for this version.
Subscription is active until June 10, 2023.
Runtime version: 11.0.15+10-b2043.56 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.5.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16

Kotlin: 221-1.6.21-release-337-IJ6008.13

0

请先登录再写评论。