refactor: rootWorkspacesMetadataAtom loading logic (#2882)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-06-29 08:48:12 +00:00
1 parent 8a2dac9718
commit 8410d83744
22 files changed
+436 -353

No files matched your search

+11
View File
@@ -206,3 +206,14 @@ export interface AppEvents {
// request to revoke access to workspace plugin
'workspace:revoke': () => Promise<void>;
}
export interface WorkspaceAdapter<Flavour extends WorkspaceFlavour> {
releaseType: ReleaseType;
flavour: Flavour;
// The Adapter will be loaded according to the priority
loadPriority: LoadPriority;
Events: Partial<AppEvents>;
// Fetch necessary data for the first render
CRUD: WorkspaceCRUD<Flavour>;
UI: WorkspaceUISchema<Flavour>;
}