UNPKG

@scalar/api-client

Version:

the open source API testing client

25 lines 834 B
/** * Handles persistence of the active workspace ID in localStorage. * * Usage example: * ```ts * // Set the active workspace id * workspaceStorage.setActiveWorkspaceId('workspace-1'); * * // Get the currently active workspace id * const id = workspaceStorage.getActiveWorkspaceId(); * ``` */ export declare const workspaceStorage: { /** * Retrieves the active workspace ID from localStorage. * @returns {string | undefined} The currently active workspace ID, or undefined if not set. */ readonly getActiveWorkspaceId: () => string | undefined; /** * Stores the given workspace ID as the active workspace in localStorage. * @param {string} id - The workspace ID to set as active. */ readonly setActiveWorkspaceId: (id: string) => void; }; //# sourceMappingURL=storage.d.ts.map