Home > utils > prepareData
准备数据。
Signature:
export declare function prepareData<T extends Record<string, () => any>>(getter: T): Promise<{
[K in keyof T]: Awaited<ReturnType<T[K]>>;
}>;
Parameter | Type | Description |
---|---|---|
getter | T | 数据源 |
Returns:
Promise<{ [K in keyof T]: Awaited<ReturnType<T[K]>>; }>