UNPKG

obj-valid

Version:

This package can check is your object has correct structure without using typescript. As you know after transpilation interfaces disappear. If you want to check object structure on production or in clean javascript you can use this package.

11 lines 422 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkSchema = void 0; var createSchema_1 = require("./createSchema"); var compare_1 = require("./compare"); function checkSchema(schema, toCheckObj) { var newSchema = createSchema_1.createSchema(toCheckObj); return compare_1.compare(schema, newSchema); } exports.checkSchema = checkSchema; //# sourceMappingURL=checkSchema.js.map