@scalar/api-client
Version:
the open source API testing client
18 lines • 676 B
TypeScript
import type { WorkspaceStore } from '@scalar/workspace-store/client';
import type { InMemoryWorkspace } from '@scalar/workspace-store/schemas/inmemory-workspace';
/**
* Restores the state of a workspace document by reverting its state
* to the specified import, while preserving certain live properties
* such as servers, security schemes, and selected server.
*/
export declare const restoreWorkspaceState: ({ workspaceStore, workspaceState, name, }: {
workspaceStore: WorkspaceStore | null;
workspaceState: InMemoryWorkspace;
name: string;
}) => {
ok: true;
} | {
ok: false;
error: string;
};
//# sourceMappingURL=restore-workspace-state.d.ts.map