(value: unknown)
| 33 | } |
| 34 | |
| 35 | function 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. |
no outgoing calls
no test coverage detected