UNPKG

yup

Version:

Dead simple Object schema validation

8 lines (7 loc) 257 B
import BaseSchema from './schema'; const Mixed = BaseSchema; export default Mixed; export function create() { return new Mixed(); } // XXX: this is using the Base schema so that `addMethod(mixed)` works as a base class create.prototype = Mixed.prototype;