@scalar/api-client
Version:
the open source API testing client
23 lines • 626 B
TypeScript
/**
* 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: {
/**
* We keep the currently active path so we can reload it if needed
*/
readonly setCurrentPath: (path: string) => void;
/**
* Retrieve the last active path
*/
readonly getLastPath: () => string | null;
};
//# sourceMappingURL=storage.d.ts.map