mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
refactor(workspace): split workspace interface and implementation (#5463)
@affine/workspace -> (@affine/workspace, @affine/workspace-impl)
This commit is contained in:
13
packages/common/workspace/src/factory.ts
Normal file
13
packages/common/workspace/src/factory.ts
Normal file
@@ -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