From 254aee021eae9dd708a3a063c671657baec39b81 Mon Sep 17 00:00:00 2001 From: Harvmaster Date: Thu, 6 Aug 2026 10:08:56 +0000 Subject: [PATCH] Add public to statics --- source/exponential-backoff.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/exponential-backoff.ts b/source/exponential-backoff.ts index 580b50f..f68b707 100644 --- a/source/exponential-backoff.ts +++ b/source/exponential-backoff.ts @@ -101,7 +101,7 @@ export class ExponentialBackoff { * @param config - The configuration for the exponential backoff * @returns The ExponentialBackoff instance */ - static from(config?: Partial): ExponentialBackoff { + public static from(config?: Partial): ExponentialBackoff { const backoff = new ExponentialBackoff(config); return backoff; @@ -119,7 +119,7 @@ export class ExponentialBackoff { * * @returns The result of the function */ - static run( + public static run( taskFn: (callbackParameters: ExponentialBackoffCallbackParameters) => Promise, onError = (_error: Error): void => {}, options?: Partial, @@ -233,7 +233,7 @@ export class ExponentialBackoff { * * @returns The result of the function */ - async run( + public async run( taskFn: (callbackParameters: ExponentialBackoffCallbackParameters) => Promise, onError = (_error: Error): void => {}, ): Promise {