Skip to content

Promise

11 wrappers generated from Promise and Promise.prototype. Every entry takes a single object literal whose keys mirror the original parameter names, plus an optional prompt: string for the LLM path.

MethodFirst signature
all
all(input: { values: Iterable<T | PromiseLike<T>>; prompt?: string }): Promise<Promise<Awaited<T>[]>>
allSettled
allSettled(input: { values: T; prompt?: string }): Promise<Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; }>>
any
any(input: { values: T; prompt?: string }): Promise<Promise<Awaited<T[number]>>>
catch
catch(input: { promise: <receiver>; onrejected?: (reason: any) => TResult | PromiseLike<TResult>; prompt?: string }): Promise<Promise<T | TResult>>
finally
finally(input: { promise: <receiver>; onfinally?: () => void; prompt?: string }): Promise<Promise<T>>
race
race(input: { values: Iterable<T | PromiseLike<T>>; prompt?: string }): Promise<Promise<Awaited<T>>>
reject
reject(input: { reason?: any; prompt?: string }): Promise<Promise<T>>
resolve
resolve(input: { prompt?: string }): Promise<Promise<void>>
then
then(input: { promise: <receiver>; onfulfilled?: (value: T) => TResult1 | PromiseLike<TResult1>; onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>; prompt?: string }): Promise<Promise<TResult1 | TResult2>>
try
try(input: { callbackFn?: (...args: U) => T | PromiseLike<T>; args: U; prompt?: string }): Promise<Promise<Awaited<T>>>
withResolvers
withResolvers(input: { prompt?: string }): Promise<PromiseWithResolvers<T>>