Skip to content

Instantly share code, notes, and snippets.

@jasdeepkhalsa
Created January 15, 2021 13:38

Revisions

  1. jasdeepkhalsa created this gist Jan 15, 2021.
    7 changes: 7 additions & 0 deletions promiseAny.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    type PromiseAny<T = any> = Promise<T>;

    interface IClass {
    methodA: (
    paramA?: string,
    ) => PromiseAny | void;
    }