MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / isThenable

Function isThenable

packages/core/src/utils/is.ts:161–164  ·  view source on GitHub ↗
(wat: any)

Source from the content-addressed store, hash-verified

159 * @param wat A value to be checked.
160 */
161export function isThenable(wat: any): wat is PromiseLike<any> {
162 // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
163 return Boolean(wat?.then && typeof wat.then === 'function');
164}
165
166/**
167 * Checks whether given value's type is a React SyntheticEvent

Callers 15

handleAsyncHandlerResultFunction · 0.90
is.test.tsFile · 0.90
notifyEventProcessorsFunction · 0.90
_notifyEventProcessorsFunction · 0.90
runCallbackFunction · 0.90
setResultMethod · 0.90
withScopeMethod · 0.90
wrapPromiseWithMethodsFunction · 0.90
withSentryConfigFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected