A new generic type can be used for file path completion(intellisense) #60105
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
π Search Terms
"path intellisense","path completion","asset path completion"
β Viability Checklist
β Suggestion
Add a tool generics so that some function parameters can enable file path type hints
some assets in
../assets
π Motivating Example
Enable custom file path completion through generics
π» Use Cases
When I used vite static resource introduction, I used a function to wrap it, but the function parameters could not achieve type hints like
import
.the function like:
Only
import
statements support path completion and cannot be customizedi make a vscode extension
The text was updated successfully, but these errors were encountered: