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.

Revisions

  1. Hillsie renamed this gist Jul 29, 2022. 1 changed file with 2 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Typing a callback that resoles a promise
    ### Typing a callback that resoles a promise

    ```ts
    ```
    cb:()=> Promise<void> = () => Promise.resolve();
    ```
  2. Hillsie created this gist Jul 29, 2022.
    5 changes: 5 additions & 0 deletions callback that resolves a promise
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # Typing a callback that resoles a promise

    ```ts
    cb:()=> Promise<void> = () => Promise.resolve();
    ```