UNPKG

ice.fo.utils

Version:

27 lines (23 loc) 754 B
declare module "ice.fo.utils/BuilderApiUtils" { /** * Map a list of items with new properties path changes. * * @example * [{ name: 'nikochin', age: 10 }, { name: 'steve', age: 20 }]; // return [{ fullName: 'nikochin', legalAge: 10 }, { fullName: 'steve', legalAge: 20 }] * * @param {object} dataMapConfig * @param {object[]} items * @param {VueContext} context * @returns */ export function mapData(dataMapConfig: any, items: any[], context: any); /** * Fetch items by API Binnding Connfig * * @param {object} dataMapConfig * @param {object} params * @param {{ $axios }} context * @returns */ export function fetchDataMap(dataMapConfig: any, params: any, context: any); }