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 {