MCPcopy
hub / github.com/triggerdotdev/trigger.dev / then

Method then

packages/core/src/v3/apiClient/core.ts:575–580  ·  view source on GitHub ↗
(
    onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null,
    onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null
  )

Source from the content-addressed store, hash-verified

573 }
574
575 override then<TResult1 = T, TResult2 = never>(
576 onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null,
577 onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null
578 ): Promise<TResult1 | TResult2> {
579 return this.parse().then(onfulfilled, onrejected);
580 }
581
582 override catch<TResult = never>(
583 onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null

Callers 13

asResponseMethod · 0.80
parseMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
getDenoJsonPathMethod · 0.80
readPackageJsonFunction · 0.80
server.tsFile · 0.80
createSchemaFunction · 0.80
createSchemaFunction · 0.80
createSchemaFunction · 0.80
onMethod · 0.80
invoke.tsFile · 0.80

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected