Skip to content

Instantly share code, notes, and snippets.

@Hillsie
Last active July 29, 2022 09:09
Show Gist options
  • Save Hillsie/21984b0161a57582b51105013fc476b0 to your computer and use it in GitHub Desktop.
Save Hillsie/21984b0161a57582b51105013fc476b0 to your computer and use it in GitHub Desktop.
typing a typescript callback that resolves a promise

Typing a callback that resoles a promise

cb:()=> Promise<void> = () => Promise.resolve();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment