export const abortOnNonSchema = (value: unknown, abort: boolean) => { if (!abort) return; const v: any = value; if (typeof v.type === 'string' && typeof v.rules === 'object') { console.log(value); throw new Error('You probably want to mock this'); } };