vtils

Home > types > AsyncOrSync

AsyncOrSync type

Useful as a return type in interfaces or abstract classes with missing implementation

Signature:

export declare type AsyncOrSync<T> = PromiseLike<T> | T;