We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I need to use this with typescript, and it doesn't have type definitions
This is what works for me:
declare module "all-node-versions" { function DefaultFunction(options?: { mirror?: string; fetch?: boolean; }): Promise<{ versions: string[]; majors: { major: number; latest: string; lts?: string }[]; }>; export = DefaultFunction; }
in typings\all-node-versions\index.d.ts with "typeRoots": ["./node_modules/@types", "./typings"], in tsconfig.json
typings\all-node-versions\index.d.ts
"typeRoots": ["./node_modules/@types", "./typings"],
tsconfig.json
The text was updated successfully, but these errors were encountered:
Great idea, thanks for suggesting. I just added them in 10.1.0.
10.1.0
Sorry, something went wrong.
Thanks, can confirm that it works :)
No branches or pull requests
Guidelines
Which problem is this feature request solving?
I need to use this with typescript, and it doesn't have type definitions
Describe the solution you'd like
This is what works for me:
in
typings\all-node-versions\index.d.ts
with
"typeRoots": ["./node_modules/@types", "./typings"],
intsconfig.json
Pull request (optional)
The text was updated successfully, but these errors were encountered: