mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
27 lines
519 B
TypeScript
27 lines
519 B
TypeScript
import { Workspace } from '@blocksuite/store';
|
|
|
|
import type { ConfigStore } from '../store.js';
|
|
|
|
export class BaseProvider {
|
|
static id = 'memory';
|
|
protected _config!: ConfigStore;
|
|
protected _workspace!: Workspace;
|
|
|
|
constructor() {
|
|
// Nothing to do here
|
|
}
|
|
|
|
async init(config: ConfigStore, workspace: Workspace) {
|
|
this._config = config;
|
|
this._workspace = workspace;
|
|
}
|
|
|
|
async initData() {
|
|
throw Error('Not implemented: initData');
|
|
}
|
|
|
|
get workspace() {
|
|
return this._workspace;
|
|
}
|
|
}
|