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
Node lets you do util.promisify() within the REPL without importing util because it declares getters for each builtin module.
util.promisify()
util
However, ts-node doesn't tell typescript about these getters, so you'll still get TS errors if you try to util.promisify
ts-node
util.promisify
We can add a bunch of declare const to the top of the REPL file so that all built-ins are declared.
declare const
Limitations:
@types/node
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Node lets you do
util.promisify()
within the REPL without importingutil
because it declares getters for each builtin module.However,
ts-node
doesn't tell typescript about these getters, so you'll still get TS errors if you try toutil.promisify
We can add a bunch of
declare const
to the top of the REPL file so that all built-ins are declared.Limitations:
@types/node
is not availableThe text was updated successfully, but these errors were encountered: