MCPcopy Index your code
hub / github.com/simstudioai/sim / isThenable

Function isThenable

packages/db/tx-tripwire.ts:35–41  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

33}
34
35function isThenable(value: unknown): value is PromiseLike<unknown> {
36 return (
37 typeof value === 'object' &&
38 value !== null &&
39 typeof (value as PromiseLike<unknown>).then === 'function'
40 )
41}
42
43/**
44 * Escape hatch: run `fn` outside the ambient transaction context.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected