Add public to statics

This commit is contained in:
2026-08-06 10:08:56 +00:00
parent 44981839f8
commit 254aee021e
+3 -3
View File
@@ -101,7 +101,7 @@ export class ExponentialBackoff {
* @param config - The configuration for the exponential backoff * @param config - The configuration for the exponential backoff
* @returns The ExponentialBackoff instance * @returns The ExponentialBackoff instance
*/ */
static from(config?: Partial<ExponentialBackoffOptions>): ExponentialBackoff { public static from(config?: Partial<ExponentialBackoffOptions>): ExponentialBackoff {
const backoff = new ExponentialBackoff(config); const backoff = new ExponentialBackoff(config);
return backoff; return backoff;
@@ -119,7 +119,7 @@ export class ExponentialBackoff {
* *
* @returns The result of the function * @returns The result of the function
*/ */
static run<T>( public static run<T>(
taskFn: (callbackParameters: ExponentialBackoffCallbackParameters) => Promise<T>, taskFn: (callbackParameters: ExponentialBackoffCallbackParameters) => Promise<T>,
onError = (_error: Error): void => {}, onError = (_error: Error): void => {},
options?: Partial<ExponentialBackoffOptions>, options?: Partial<ExponentialBackoffOptions>,
@@ -233,7 +233,7 @@ export class ExponentialBackoff {
* *
* @returns The result of the function * @returns The result of the function
*/ */
async run<T>( public async run<T>(
taskFn: (callbackParameters: ExponentialBackoffCallbackParameters) => Promise<T>, taskFn: (callbackParameters: ExponentialBackoffCallbackParameters) => Promise<T>,
onError = (_error: Error): void => {}, onError = (_error: Error): void => {},
): Promise<T> { ): Promise<T> {