Quick fix to 'declare function' from call site #38025
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
declare function quick fix
Suggestion
Provide a quick fix for calls to unknown functions to declare a function of that name in current or module scope. Similar to the "declare method" quick fix for methods in classes.
Use Cases
Write code that consumes a function before writing it to let you figure out the order of arguments etc. Function parameter types and names should be inferred from arguments given at call site, just like "declare method".
Examples
Cursor at squiggly -> Quick fix "Declare function in module scope" ->
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: