Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let validateUpdate = options => {
// ! code: func_update
return validateSchema(update, ajv, options);
// !end
};
}
});
// $ExpectType Hook>
traverse(function(node) {
if (typeof node === 'string') {
this.update(node.trim());
}
}, context => context.params.query);
// $ExpectType Hook>
validate(async (data, context) => {
return { length: 'expected max 3, got 7' };
});
// $ExpectType Hook>
validateSchema({}, ajv);
// $ExpectType Hook>
iffElse(syncTrue, [hook1, hook2], [hook3, hook4]);
// $ExpectType Hook>
iffElse(asyncTrue, [hook1, hook2], [hook3, hook4]);
// $ExpectType IffHook
iff(syncTrue, hook1, hook2);
// $ExpectType IffHook
iff(asyncTrue, hook1, hook2);
// $ExpectType Hook>
iff(syncTrue, hook1, hook2).else(hook3, hook4);
// $ExpectType Hook>
iff(asyncTrue, hook1, hook2).else(hook3, hook4);
// $ExpectType IffHook
let validatePatch = (options?: any) => {
// ! code: func_patch
return validateSchema(patch, ajv, options);
// !end
};
let validateUpdate = (options?: any) => {
// ! code: func_update
return validateSchema(update, ajv, options);
// !end
};
let validateUpdate = (options?: any) => {
// ! code: func_update
return validateSchema(update, ajv, options);
// !end
};
let validateCreate = (options?: any) => {
// ! code: func_create
return validateSchema(create, ajv, options);
// !end
};
let validateCreate = options => {
// ! code: func_create
return validateSchema(create, ajv, options);
// !end
};
let validatePatch = (options?: any) => {
// ! code: func_patch
return validateSchema(patch, ajv, options);
// !end
};
let validateCreate = (options?: any) => {
// ! code: func_create
return validateSchema(create, ajv, options);
// !end
};
let validateCreate = (options?: any) => {
// ! code: func_create
return validateSchema(create, ajv, options);
// !end
};