UNPKG

contentful-migration

Version:
16 lines 641 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EditorInterfaceSchemaValidator = void 0; const __1 = require(".."); const schema_validation_1 = require("./schema/schema-validation"); class EditorInterfaceSchemaValidator { constructor() { this.hooks = [__1.ApiHook.SaveEditorInterface]; } validate(editorInterface) { const editorInterfaceErrors = (0, schema_validation_1.validateEditorInterface)(editorInterface); return editorInterfaceErrors; } } exports.EditorInterfaceSchemaValidator = EditorInterfaceSchemaValidator; //# sourceMappingURL=editor-interface.js.map