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
The following are the types to include typescript support in your project:
export type UnhookFunctionType = () => void; export type HookOpts = { silent: boolean; once: boolean }; export type HookCallback = (str: string, enc: string) => string | boolean; export function stdout( opts: HookOpts | HookCallback, cb?: HookCallback ): UnhookFunctionType; export function stderr( opts: HookOpts | HookCallback, cb?: HookCallback ): UnhookFunctionType;
They should be added to index.d.ts in order to provide types out-of-the-box.
index.d.ts
The text was updated successfully, but these errors were encountered:
Sorry, it's better to publish them to DefinitelyTyped sindresorhus/ama#439. We don't care in maintaining typedef ourselves.
Sorry, something went wrong.
I now accept TypeScript definitions if anyone looking is interested in submitting it here.
See: sindresorhus/ama#439 (comment)
Please follow this guide: https://github.com/sindresorhus/typescript-definition-style-guide
No branches or pull requests
The following are the types to include typescript support in your project:
They should be added to
index.d.ts
in order to provide types out-of-the-box.The text was updated successfully, but these errors were encountered: