synctos
Version:
The Syncmaker. A tool to build comprehensive sync functions for Couchbase Sync Gateway.
28 lines (27 loc) • 546 B
JavaScript
function() {
return {
anyTypeDoc: {
typeFilter: simpleTypeFilter,
channels: { write: 'write' },
propertyValidators: {
arrayProp: {
type: 'array',
arrayElementsValidator: {
type: 'any',
required: true
}
},
hashtableProp: {
type: 'hashtable',
hashtableValuesValidator: {
type: 'any',
immutableWhenSet: true
}
},
anyProp: {
type: 'any'
}
}
}
};
}