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.

15 lines 547 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.configPrototype = void 0; var createSchema_1 = require("./createSchema"); var checkSchema_1 = require("./checkSchema"); function configPrototype() { Object.prototype.createSchema = function () { return createSchema_1.createSchema(this); }; Object.prototype.checkSchema = function (schema) { return checkSchema_1.checkSchema(schema, this); }; } exports.configPrototype = configPrototype; //# sourceMappingURL=configPrototype.js.map