UNPKG

jet-validators

Version:

A list common typescript validator-functions and some useful utilities to go with them.

15 lines (14 loc) 627 B
type TDeepCompareCb = (key: string, val1: unknown, val2: unknown) => void; type TDeepCompareFn = (arg1: unknown, arg2: unknown) => boolean; interface IDeepCompareOptions { disregardDateException?: boolean; onlyCompareProps?: string | string[]; convertToDateProps?: string | string[] | { rec: boolean; props: string | string[]; }; } export declare const deepCompare: TDeepCompareFn; export declare function customDeepCompare(optionsOrCb: IDeepCompareOptions, cb?: TDeepCompareCb): TDeepCompareFn; export declare function customDeepCompare(optionsOrCb: TDeepCompareCb): TDeepCompareFn; export {};