From bd09efc47f0f285c00f092d38819e8944259e4be Mon Sep 17 00:00:00 2001 From: stefanofa <9802152+stefanofa@users.noreply.github.com> Date: Mon, 27 May 2024 15:30:06 +0200 Subject: [PATCH] feat: add is-initialized helper on folks core --- src/xchain/core/folks-core.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xchain/core/folks-core.ts b/src/xchain/core/folks-core.ts index ceb799a..281b2e4 100644 --- a/src/xchain/core/folks-core.ts +++ b/src/xchain/core/folks-core.ts @@ -38,6 +38,10 @@ export class FolksCore { return FolksCore.instance; } + static isInitialized(): boolean { + return !!FolksCore.instance; + } + static getInstance(): FolksCore { if (FolksCore.instance) return FolksCore.instance; throw new Error("FolksCore is not initialized");