UNPKG

json-schema-library

Version:

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

11 lines (10 loc) 226 B
let isFile; // @ts-expect-error forced types isFile = () => false; try { if (typeof File === "function") { isFile = (value) => value instanceof File; } } catch (e) { } // eslint-disable-line export { isFile };