Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
softDelete,
some,
stashBefore,
SyncPredicateFn,
traverse,
unless,
validate,
validateSchema,
when,
} from 'feathers-hooks-common';
import { parse } from 'graphql';
import ajv = require('ajv');
const context1: HookContext = {
type: 'before',
app: feathers(),
method: '',
params: {},
path: '/',
service: null
};
const hook1: Hook = ctx => ctx;
const hook2: Hook = ctx => ctx;
const hook3: Hook = async ctx => ctx;
const hook4: Hook = async ctx => ctx;
const syncTrue: SyncPredicateFn = ctx => true;
const syncFalse: SyncPredicateFn = ctx => false;
const asyncTrue: AsyncPredicateFn = async ctx => true;
const asyncFalse: AsyncPredicateFn = async ctx => false;