TS Template added by @mjbvz
TypeScript Version: 4.0.3
Search Terms
- d.ts
- auto import
- intellisense
- Version: 1.49.1
- Commit: 58bb7b2331731bf72587010e943852e13e6fd3cf
- Date: 2020-09-16T23:21:17.533Z (4 days ago)
- Electron: 9.2.1
- Chrome: 83.0.4103.122
- Node.js: 12.14.1
- V8: 8.3.110.13-electron.0
- OS: Darwin x64 19.3.0
Steps to Reproduce:
I am using a library called ahooks, but this is not the point, I found such a thing: dts compiled from anonymous arrow functions cannot be automatically imported ...
- yarn add ahooks
- typing
useMouse in the vscode
- hit
enter .. nothing happend

Need to manually click to import

I looked at the source code for export default and it looks like this
It will be compiled into dts like this
declare const _default: () => void;
export default _default;
Anything types like this cannot be imported automatically
Does this issue occur when all extensions are disabled?: Yes
TS Template added by @mjbvz
TypeScript Version: 4.0.3
Search Terms
Steps to Reproduce:
I am using a library called ahooks, but this is not the point, I found such a thing: dts compiled from anonymous arrow functions cannot be automatically imported ...
useMousein the vscodeenter.. nothing happendNeed to manually click to import
I looked at the source code for
export defaultand it looks like thisIt will be compiled into dts like this
Anything types like this cannot be imported automatically
Does this issue occur when all extensions are disabled?: Yes