Skip to content

Commit

Permalink
chore: fix TypeScript error
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisre committed Feb 2, 2021
1 parent 5cb5d42 commit 86776da
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion joi/src/joi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { appendErrors, transformToNestObject } from 'react-hook-form';
import * as Joi from 'joi';
// @ts-expect-error maybe fixed after the first publish ?
import { convertArrayToPathName } from '@hookform/resolvers';
import { Resolver } from './types';

Expand Down
1 change: 0 additions & 1 deletion superstruct/src/superstruct.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { appendErrors, transformToNestObject } from 'react-hook-form';
import { StructError, validate } from 'superstruct';
// @ts-expect-error maybe fixed after the first publish ?
import { convertArrayToPathName } from '@hookform/resolvers';
import { Resolver } from './types';

Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"noFallthroughCasesInSwitch": true,
"strictNullChecks": true,
"isolatedModules": true,
"jsx": "react"
"jsx": "react",
"paths": {
"@hookform/resolvers": ["."]
}
}
}
1 change: 0 additions & 1 deletion zod/src/zod.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { appendErrors, transformToNestObject } from 'react-hook-form';
import * as z from 'zod';
// @ts-expect-error maybe fixed after the first publish ?
import { convertArrayToPathName } from '@hookform/resolvers';
import type { Resolver } from './types';

Expand Down

0 comments on commit 86776da

Please sign in to comment.