graphql-tools-monorepo / utils/src / PromiseWithResolvers

Interface: PromiseWithResolvers<T>

utils/src.PromiseWithResolvers

Type parameters

Name
T

Table of contents

Properties

Properties

promise

promise: Promise<T>

Defined in

packages/utils/src/createDeferred.ts:2


reject

reject: (reason: any) => void

Type declaration

▸ (reason): void

Parameters
NameType
reasonany
Returns

void

Defined in

packages/utils/src/createDeferred.ts:4


resolve

resolve: (value: T | PromiseLike<T>) => void

Type declaration

▸ (value): void

Parameters
NameType
valueT | PromiseLike<T>
Returns

void

Defined in

packages/utils/src/createDeferred.ts:3