Skip to content

Add TypeScript type definitions#12

Open
larvanitis wants to merge 2 commits intoTapppi:masterfrom
larvanitis:patch-1
Open

Add TypeScript type definitions#12
larvanitis wants to merge 2 commits intoTapppi:masterfrom
larvanitis:patch-1

Conversation

@larvanitis
Copy link
Copy Markdown

No description provided.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 97.436% when pulling 1ab5d63 on larvanitis:patch-1 into 80e692c on Tapppi:master.

@central419
Copy link
Copy Markdown

@Tapppi this is useful, could this be merged and published?

Comment thread index.d.ts
declare namespace AsyncExitHook {

/** The callback to call when the event handling is finished. */
type AsycHookCallback = () => void;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: typo here: should be AsyncHookCallback. Use sites will also need to change.

@officiallyemma
Copy link
Copy Markdown

Bump. This would be really great to have merged.

@SpeedyCraftah
Copy link
Copy Markdown

SpeedyCraftah commented Jul 1, 2021

FYI guys I have made a type definition for this package in the definitely typed repo since the author looks like they abandoned the package. You should now be able to install them with @types/async-exit-hook (I hated seeing no types considering I use this package quite a lot)

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

Successfully merging this pull request may close these issues.

7 participants