update show empty groups (#2897)

Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
Ruslan Bayandinov
2023-04-05 18:23:55 +06:00
committed by GitHub
parent 972e82eb32
commit 5130eb8862
7 changed files with 31 additions and 38 deletions
+5 -7
View File
@@ -254,17 +254,15 @@ export interface ClassSortFuncs extends Class<Doc> {
/**
* @public
*/
export type AllValuesFuncGetter = (
space: Ref<Space> | undefined,
onUpdate: () => void,
queryId: Ref<Doc>
) => Promise<any[] | undefined>
export type GetAllValuesFunc = Resource<
(query: DocumentQuery<Doc> | undefined, onUpdate: () => void, queryId: Ref<Doc>) => Promise<any[] | undefined>
>
/**
* @public
*/
export interface AllValuesFunc extends Class<Doc> {
func: Resource<AllValuesFuncGetter>
func: GetAllValuesFunc
}
/**
@@ -506,7 +504,7 @@ export interface ViewOption {
*/
export type ViewCategoryActionFunc = (
_class: Ref<Class<Doc>>,
space: Ref<Space> | undefined,
query: DocumentQuery<Doc> | undefined,
key: string,
onUpdate: () => void,
queryId: Ref<Doc>,