mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-28 15:30:49 -08:00
refactor: add more log and assertion
This commit is contained in:
parent
ba6bca1560
commit
8fc533d767
3 changed files with 73 additions and 27 deletions
|
|
@ -133,6 +133,10 @@ export interface IWorkspaceService {
|
|||
remove(id: string): Promise<void>;
|
||||
removeWorkspacePicture(id: string): Promise<void>;
|
||||
set(id: string, workspace: IWorkspace, immediate?: boolean): Promise<void>;
|
||||
/**
|
||||
* Set new workspace to active, and make the old active workspace inactive
|
||||
* @param id id to active
|
||||
*/
|
||||
setActiveWorkspace(id: string): Promise<void>;
|
||||
setWorkspacePicture(id: string, sourcePicturePath: string): Promise<void>;
|
||||
setWorkspaces(newWorkspaces: Record<string, IWorkspace>): Promise<void>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue