@scalar/api-reference
Version:
Generate beautiful API references from OpenAPI documents
23 lines • 987 B
TypeScript
import type { WorkspaceStore } from '@scalar/workspace-store/client';
/**
* Creating sidebar with only one traversal of the spec
*
* TODO:
* - add the search index creation as well
* - update docs
* - tagged models
*/
export declare const createSidebar: (store: WorkspaceStore) => {
collapsedSidebarItems: Record<string, boolean>;
isSidebarOpen: import("vue").Ref<boolean, boolean>;
items: import("vue").ComputedRef<{
entries: import("@scalar/workspace-store/schemas/navigation").TraversedEntry[];
entities: Map<string, import("@scalar/workspace-store/schemas/navigation").TraversedEntry & {
parent?: import("@scalar/workspace-store/schemas/navigation").TraversedEntry;
}>;
}>;
scrollToOperation: (operationId: string, focus?: boolean) => void;
setCollapsedSidebarItem: (key: string, value: boolean) => boolean;
toggleCollapsedSidebarItem: (key: string) => boolean;
};
//# sourceMappingURL=create-sidebar.d.ts.map