Auto import for types like `Ref`
See original GitHub issueEnvironment
- Operating System:
Darwin
- Node Version:
v14.16.1
- Nuxt Version:
3.0.0-27277498.850ef69
- Package Manager:
pnpm@6.17.1
- Bundler:
Vite
- User Config:
env
,alias
,srcDir
,dev
,build
,publicRuntimeConfig
,buildModules
,css
,vite
- Runtime Modules:
-
- Build Modules:
@vueuse/core/nuxt@6.8.0
,@pinia/nuxt@0.1.2
,./app/t5-ui/nuxt
Reproduction
Describe the bug
I want to use Ref
to type assertions, But:
Additional context
No response
Logs
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Is there auto-import functionality for typescript in Visual Studio ...
Automatically searches for TypeScript definitions in workspace files and provides all known symbols as completion item to allow code completion ...
Read more >Auto import | IntelliJ IDEA Documentation - JetBrains
Basic procedures to create and optimize imports in IntelliJ IDEA. Learn more how to import the missing import or XML namespace.
Read more >Auto import namespaces/references - Visual Studio Feedback
I'm coming from Java and in Eclipse, you can configure auto import so that classes are imported automatically when you type them. This...
Read more >Auto imports · Nuxt Concepts
In the documentation, every function that is not explicitly imported is auto-imported by Nuxt and can be used as-is in your code. You...
Read more >Documentation - TypeScript 3.8
import type only imports declarations to be used for type annotations and declarations. It always gets fully erased, so there's no remnant of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@antfu do you have any flash update on this? From what I can see, the Ref type must still be manually imported
AFAIK it’s a current typescript limitation: you cannot re-export types