x/evt@v1.10.2/tools/typeSafety/isPromiseLike.ts

šŸ’§EventEmitter's typesafe replacement
GitHub Stars
382
Go to Latest

export function isPromiseLike<T = void>(o: any): o is PromiseLike<T> { return typeof o?.then === "function";}