diff --git a/app/src/types/config.d.ts b/app/src/types/config.d.ts index 52ed60437..713b53d0a 100644 --- a/app/src/types/config.d.ts +++ b/app/src/types/config.d.ts @@ -2007,20 +2007,20 @@ declare namespace Config { * - `0`: No grouping * - `1`: Group by document */ - group: number; - hasReplace: boolean; + group?: number; + hasReplace?: boolean; /** * Readable path list */ - hPath: string; + hPath?: string; /** * Search in the specified paths */ - idPath: string[]; + idPath?: string[]; /** * Search content */ - k: string; + k?: string; /** * Search scheme * - `0`: Keyword (default) @@ -2029,7 +2029,7 @@ declare namespace Config { * - `3`: Regular expression * @default 0 */ - method: number; + method?: number; /** * Custom name of the query condition group */ @@ -2037,17 +2037,17 @@ declare namespace Config { /** * Current page number */ - page: number; + page?: number; /** * Replace content */ - r: string; + r?: string; /** * Whether to clear the search box after removing the currently used query condition group * 移除后需记录搜索内容 https://github.com/siyuan-note/siyuan/issues/7745 */ removed?: boolean; - replaceTypes: IUILayoutTabSearchConfigReplaceTypes; + replaceTypes?: IUILayoutTabSearchConfigReplaceTypes; /** * Search result sorting scheme * - `0`: Block type (default) @@ -2060,8 +2060,8 @@ declare namespace Config { * - `7`: Descending by relevance * @default 0 */ - sort: number; - types: IUILayoutTabSearchConfigTypes; + sort?: number; + types?: IUILayoutTabSearchConfigTypes; } /**