UNPKG

@sprucelabs/schema

Version:

Static and dynamic binding plus runtime validation and transformation to ensure your app is sound. 🤓

16 lines (15 loc) • 602 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = defaultSchemaValues; const StaticSchemaEntityImpl_1 = __importDefault(require("../StaticSchemaEntityImpl")); function defaultSchemaValues(definition, options = {}) { const instance = new StaticSchemaEntityImpl_1.default(definition); // @ts-ignore return instance.getDefaultValues({ shouldCreateEntityInstances: false, ...options, }); }