From a46cdd9feb8b62f65d10e06f9f7554002faaa29d Mon Sep 17 00:00:00 2001 From: tiddlygit-test Date: Fri, 1 Oct 2021 18:39:38 +0800 Subject: [PATCH] docs: about INewWorkspaceConfig --- src/services/workspaces/interface.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/workspaces/interface.ts b/src/services/workspaces/interface.ts index 31fd4759..bad6be4b 100644 --- a/src/services/workspaces/interface.ts +++ b/src/services/workspaces/interface.ts @@ -98,8 +98,11 @@ export interface IWorkspaceMetaData { isLoading?: boolean; } +/** + * Ignore some field that will assign default value in workspaceService.create, these field don't require to be filled in AddWorkspace form + */ export type INewWorkspaceConfig = SetOptional< - Omit, + Omit, 'homeUrl' | 'transparentBackground' | 'picturePath' | 'disableNotifications' | 'disableAudio' | 'hibernateWhenUnused' | 'subWikiFolderName' | 'userName' >;