UNPKG

@squiz/json-schema-library

Version:

Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation

8 lines 242 B
/** * ts type guard for json error * @returns true if passed type is a JSONError */ export function isJSONError(error) { return (error === null || error === void 0 ? void 0 : error.type) === "error"; } //# sourceMappingURL=types.js.map