From 80bac6bdd08a5971f3d47bd6872b3b76bd9a32ee Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Wed, 26 Jun 2024 10:22:22 +0200 Subject: [PATCH] fix: error method return type --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index d888426..e67d460 100644 --- a/src/index.ts +++ b/src/index.ts @@ -402,7 +402,7 @@ export class UnleashClient extends TinyEmitter { return this.readyEventEmitted; } - public getError(): SdkState { + public getError() { return this.sdkState === 'error' ? this.lastError : undefined; }