vtils

Home > utils > prepareData

prepareData() function

准备数据。

Signature:

export declare function prepareData<T extends Record<string, () => any>>(getter: T): Promise<{
    [K in keyof T]: Awaited<ReturnType<T[K]>>;
}>;

Parameters

Parameter Type Description
getter T 数据源

Returns:

Promise<{ [K in keyof T]: Awaited<ReturnType<T[K]>>; }>