UNPKG

dbl-utils

Version:

Utilities for dbl, adba and others projects

25 lines (24 loc) 880 B
interface Options { omit?: (item: any) => boolean; deep?: number; notFound?: any; rules?: Record<string, [string, ...any[]]>; extraTasks?: Record<string, (arg: any) => any>; delimiter: string; } export interface TaskFunctions { iterate?: (keyData: any, itemName: string) => any[]; join?: (first: any, join: string, ...next: any[]) => string; ignore?: (d: string, def: any) => any; if?: (d: string, found: any, def: any) => any; [key: string]: Function | undefined; } /** * Resolves the references of an object. * @param {*} object - The object to process. * @param {*} schema - The schema of the object. * @param {Options} options - Configuration options. * @returns {*} The object with resolved references. */ declare const resolveRefs: (object: any, schema?: any, options?: Partial<Options>) => any; export default resolveRefs;