Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javascript automatic how do? #3673

Open
zhch-hong opened this issue Mar 7, 2023 · 1 comment
Open

javascript automatic how do? #3673

zhch-hong opened this issue Mar 7, 2023 · 1 comment

Comments

@zhch-hong
Copy link

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?

@zhch-hong
Copy link
Author

./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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant