mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 18:46:19 +08:00
refactor: workspace manager (#5060)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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>;
|
||||
}
|
||||
Reference in New Issue
Block a user