import { UnisphereWorkspaceType } from '@unisphere/runtime'; class UnisphereWorkspaceService { private static workspaceInstance: UnisphereWorkspaceType | null = null; public static set(workspaceInstance: UnisphereWorkspaceType): void { UnisphereWorkspaceService.workspaceInstance = workspaceInstance; } public static get(): UnisphereWorkspaceType | null { return UnisphereWorkspaceService.workspaceInstance; } public static destroy(): void { try { (this.workspaceInstance as any).kill(); } catch (e) { // TODO add logs } UnisphereWorkspaceService.workspaceInstance = null; } } export { UnisphereWorkspaceService };