PromiseWatcher<V, A>: {
    onFulfilled?: ((value: V, ...args: A) => void);
    onRejected?: ((reason: unknown, ...args: A) => void);
}

Type Parameters

  • V

    fulfilled value

  • A extends any[] = unknown[]

    arguments