UNPKG

json-schema-describes-subset

Version:

Tools for static JSON schema analysis, including functions to determine if one schema describes a subset of another or if a schema describes the empty set or to convert a schema to its disjunctive normal form (DNF).

7 lines (6 loc) 183 B
/** * @param data Must be pure data and not contain functions etc. May contain non * JSON data (e. g. `undefined`) * */ export declare function cloneData<Type>(data: Type): Type;