From 52a4039a13d75f527e6e8db3ca97eee18e620306 Mon Sep 17 00:00:00 2001 From: Spartak Date: Sat, 22 Jun 2024 14:40:38 +0200 Subject: [PATCH] 0.4.0 --- docs/functions/deferred.html | 2 +- docs/functions/delay.html | 2 +- docs/functions/sleep.html | 2 +- docs/functions/timeout.html | 2 +- docs/functions/to.html | 2 +- docs/types/_internal_.DeferredOut.html | 2 +- docs/types/_internal_.TimeoutIn.html | 2 +- docs/types/_internal_.TimeoutOut.html | 2 +- docs/types/_internal_.ToFinally.html | 2 +- docs/types/_internal_.ToIn.html | 2 +- docs/types/_internal_.ToOut.html | 2 +- package.json | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/functions/deferred.html b/docs/functions/deferred.html index 2b4ab75..850ebeb 100644 --- a/docs/functions/deferred.html +++ b/docs/functions/deferred.html @@ -161,7 +161,7 @@

Type Parameters

Returns DeferredOut<T>

An object containing the promise, resolve, and reject functions.

-
DeferredOut<T>: {
    promise: Promise<T>;
    reject: ((reason?) => void);
    resolve: ((value) => void);
}

Represents a deferred promise, which exposes the resolve and reject functions.

Type Parameters

  • T

    The type of the value that the promise resolves to.

    -

Type declaration

  • promise: Promise<T>
  • reject: ((reason?) => void)
      • (reason?): void
      • Parameters

        • Optional reason: any

        Returns void

  • resolve: ((value) => void)
TimeoutIn<T>: Promise<T>

Type alias for a promise of type T.

-

Type Parameters

  • T
TimeoutOut<T>: Promise<T>

Return type for the timeout function.

-

Type Parameters

  • T
ToFinally: (() => void | Promise<void>)

Type alias for a function that can optionally be executed after the promise resolves or rejects. It can return void or a Promise that resolves to void.

-

Type declaration

    • (): void | Promise<void>
    • Returns void | Promise<void>

ToIn<T>: Promise<T>

Type alias for a promise of type T.

-

Type Parameters

  • T
ToOut<T>: [Error, null] | [null, T]

Type alias for the output of the to function. It can be either an array with an Error and null, or an array with null and the result of type T.

-

Type Parameters

  • T