UNPKG

@jsonjoy.com/json-type

Version:

High-performance JSON Pointer implementation

64 lines (63 loc) 1.03 kB
/** * @module * @todo Move to `src/validator/`. */ /** * Validation error codes. * * ATTENTION: Only add new error codes at the end of the list !!! * ========= */ export declare enum ValidationError { STR = 0, NUM = 1, BOOL = 2, ARR = 3, TUP = 4, OBJ = 5, MAP = 6, KEY = 7, KEYS = 8, BIN = 9, OR = 10, REF = 11, ENUM = 12, CONST = 13, VALIDATION = 14, INT = 15, UINT = 16, STR_LEN = 17, ARR_LEN = 18, GT = 19, GTE = 20, LT = 21, LTE = 22, BIN_LEN = 23 } /** Human-readable error messages by error code. */ export declare const ValidationErrorMessage: { 0: string; 1: string; 2: string; 3: string; 4: string; 5: string; 6: string; 7: string; 8: string; 9: string; 10: string; 11: string; 12: string; 13: string; 14: string; 15: string; 16: string; 17: string; 23: string; 18: string; 19: string; 20: string; 21: string; 22: string; };