Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/tsafe/isPromiseLike.ts

🔩 The missing TypeScript utils
Go to Latest
File
// eslint-disable-next-line @typescript-eslint/no-explicit-anyexport function isPromiseLike<T = void>(o: any): o is PromiseLike<T> { return typeof o?.then === "function";}