UNPKG

@teamplay/sharedb-schema

Version:

ShareDB schema validation middleware

8 lines (5 loc) 181 B
import Schema from './Schema.js' export default function schema (backend, options) { const schema = new Schema(backend, options) backend.use('commit', schema.commitHandler) }