nope-validator
Version:
Fast and simple JS validator
10 lines (9 loc) • 699 B
TypeScript
import { NopeReference } from './NopeReference';
import { Nil } from './types';
export declare function resolveNopeRefsFromKeys(options: string[], context?: Record<string | number, any>): any[];
export declare function resolveNopeRef<T>(option: T | NopeReference | Nil, context?: Record<string | number, any>): any;
export declare function deepEquals(a: any, b: any): boolean;
export declare function pathToArray(path: string): string[];
export declare function getFromPath(path: string, entry: Record<string | number, any>, dropLast?: boolean): any;
export declare function runValidators(tasks: any, entry: any, context: any): any;
export declare function isNil(entry: any): entry is Nil;