-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
react-hook-form
type inference error
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/types/path/eager.d.ts b/dist/types/path/eager.d.ts | ||
index 70db89679ae6ae6fba0632729dd3357a670b822c..cf4b394ea780a6ba0f42990fdb5af10f126f6cb0 100644 | ||
--- a/dist/types/path/eager.d.ts | ||
+++ b/dist/types/path/eager.d.ts | ||
@@ -5,7 +5,7 @@ import { ArrayKey, IsTuple, TupleKeys } from './common'; | ||
* Helper type for recursively constructing paths through a type. | ||
* See {@link Path} | ||
*/ | ||
-declare type PathImpl<K extends string | number, V> = V extends Primitive ? `${K}` : `${K}` | `${K}.${Path<V>}`; | ||
+declare type PathImpl<K extends string | number, V> = V extends Primitive | SharedArrayBuffer ? `${K}` : `${K}` | `${K}.${Path<V>}`; | ||
/** | ||
* Type which eagerly collects all paths through a type | ||
* @typeParam T - type which should be introspected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters