select不再返回数据结构

This commit is contained in:
Xu Chang 2023-03-31 19:23:37 +08:00
parent c14f4543e1
commit d72ef79e69
2 changed files with 2 additions and 2 deletions

2
lib/AspectDict.d.ts vendored
View File

@ -14,7 +14,7 @@ export declare type CommonAspectDict<ED extends EntityDict & BaseEntityDict, Cxt
option?: OP;
getCount?: true;
}, context: Cxt) => Promise<{
data: Partial<ED[T]['Schema']>[];
ids: string[];
count?: number;
}>;
aggregate: <T extends keyof ED, OP extends SelectOption>(params: {

View File

@ -19,7 +19,7 @@ export type CommonAspectDict<ED extends EntityDict & BaseEntityDict, Cxt extends
params: { entity: T; selection: ED[T]['Selection']; option?: OP; getCount?: true },
context: Cxt
) => Promise<{
data: Partial<ED[T]['Schema']>[];
ids: string[];
count?: number;
}>;
aggregate: <T extends keyof ED, OP extends SelectOption>(