From 041d305e240c22456665a87b91b15e69cb8f3b60 Mon Sep 17 00:00:00 2001 From: Spartak Date: Sat, 22 Jun 2024 21:38:44 +0200 Subject: [PATCH] 0.6.1 --- docs/functions/deferred.html | 2 +- docs/functions/delay.html | 2 +- docs/functions/duration.html | 2 +- docs/functions/retry.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_.DurationOut.html | 2 +- docs/types/_internal_.RetryOptions.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 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/functions/deferred.html b/docs/functions/deferred.html index c5153cf..3868fa6 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)
DurationOut<T>: [Error, null, number] | [null, T, number]

Type representing the output of the duration function. The result is a tuple that includes either an error or a value, and the duration in milliseconds.

Type Parameters

  • T

    The type of the resolved value of the promise.

    -
RetryOptions: {
    delay?: number;
}

Options for the retry function.

-

Type declaration

  • Optional delay?: number
TimeoutIn<T>: Promise<T>

Type alias for a promise of type T.

-

Type Parameters

  • T
TimeoutOut<T>: [Error, null] | [null, 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