Skip to content

Instantly share code, notes, and snippets.

@kasperpeulen
Created November 20, 2020 10:39
Show Gist options
  • Save kasperpeulen/0c19b5ebc4acd4792cc5090e92f20e21 to your computer and use it in GitHub Desktop.
Save kasperpeulen/0c19b5ebc4acd4792cc5090e92f20e21 to your computer and use it in GitHub Desktop.
interface Promise<A> {
then<B>(callback: (a: A) => B | Promise<B>): Promise<B>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment