Files
AFFiNE-Mirror/packages/frontend/workspace/src/factory.ts
T
2023-12-15 07:20:50 +00:00

14 lines
333 B
TypeScript

import type { WorkspaceMetadata } from './metadata';
import type { Workspace } from './workspace';
export interface WorkspaceFactory {
name: string;
openWorkspace(metadata: WorkspaceMetadata): Workspace;
/**
* get blob without open workspace
*/
getWorkspaceBlob(id: string, blobKey: string): Promise<Blob | null>;
}