UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

13 lines (12 loc) 387 B
//#region packages/normalization-core/src/promise-like.ts /** Canonical thenable guard; use instead of local isPromiseLike copies. */ function isPromiseLike(value) { if (value === null || typeof value !== "object" && typeof value !== "function") return false; try { return typeof value.then === "function"; } catch { return false; } } //#endregion export { isPromiseLike as t };