mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
14 lines
333 B
TypeScript
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>;
|
|
}
|