vuejs / vetur

Vue tooling for VS Code.

Home Page:https://vuejs.github.io/vetur/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

javascript automatic how do?

zhch-hong opened this issue · comments

The JavaScript language used by my project, I define some global variables and functions. If you want to get the automatic prompt of VSCode, how should you do?

./types/a.d.ts
declare type myFunction<T> = (url: string, data: Record<string, string>) => Promise<T>;
this is my global function.Is it right to do this