|
|
@ -11,7 +11,7 @@ const wrapValueAsOption = require("@validatem/wrap-value-as-option");
|
|
|
|
module.exports = function simpleSource(_options) {
|
|
|
|
module.exports = function simpleSource(_options) {
|
|
|
|
let { onRequest, onAbort } = validateOptions(arguments, [
|
|
|
|
let { onRequest, onAbort } = validateOptions(arguments, [
|
|
|
|
required,
|
|
|
|
required,
|
|
|
|
wrapValueAsOption("onResult"), {
|
|
|
|
wrapValueAsOption("onRequest"), {
|
|
|
|
onRequest: [ required, isFunction ],
|
|
|
|
onRequest: [ required, isFunction ],
|
|
|
|
onAbort: [ isFunction ]
|
|
|
|
onAbort: [ isFunction ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|