UNPKG

path-value

Version:

Property path-to-value resolver, in TypeScript

16 lines (15 loc) 440 B
import { IPathResult } from './types'; /** * Validates `errorCode` within `IPathResult`, to throw `PathError` when it is set. * * @param res * Result to validate. */ export declare function validateErrorCode(res: IPathResult): void; /** * Validates `exists` within `IPathResult`, to throw `PathExistError` when it is `false`. * * @param res * Result to validate. */ export declare function validateExists(res: IPathResult): void;