UNPKG

json-schema-library

Version:

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

2 lines (1 loc) 236 B
export const isType = (schemaType, type) => { var _a; return schemaType === type || ((_a = schemaType === null || schemaType === void 0 ? void 0 : schemaType.includes) === null || _a === void 0 ? void 0 : _a.call(schemaType, type)); };