adba
Version:
Any DataBase to API
18 lines (17 loc) • 633 B
TypeScript
import type { IExtraRules, IRules } from './types';
/**
* Adds more rule actions to the `extraRules` object.
* @param moreRules - An object containing rules to be added.
*/
export declare function addRuleActions(moreRules: IExtraRules): void;
/**
* Formats data according to the provided rules.
* @param data - The object where keys are field names and values are the data to format.
* @param rules - The object containing rules to use for formatting.
* @returns Returns a new object with formatted values.
*/
export default function formatData(data: {
[key: string]: any;
}, rules: IRules): {
[key: string]: any;
};