Skip to content

Commit

Permalink
Fix react-hook-form type inference error
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed May 9, 2023
1 parent 088a122 commit 92eef39
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .yarn/patches/react-hook-form-npm-7.29.0-baedbea779.patch
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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"@polkadot/util-crypto": "9.5.1",
"bn.js": "^4.11.9",
"@joystream/js@1.2.0": "patch:@joystream/js@npm%3A1.2.0#./.yarn/patches/@joystream-js-npm-1.2.0-a8795e7496.patch",
"@joystream/types": "./packages/joystream-types-v0.20.6.tgz"
"@joystream/types": "./packages/joystream-types-v0.20.6.tgz",
"react-hook-form@^7.29.0": "patch:react-hook-form@npm%3A7.29.0#./.yarn/patches/react-hook-form-npm-7.29.0-baedbea779.patch"
},
"engines": {
"node": ">=14.18.0",
Expand Down
11 changes: 10 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21252,7 +21252,7 @@ __metadata:
languageName: node
linkType: hard

"react-hook-form@npm:^7.29.0":
"react-hook-form@npm:7.29.0":
version: 7.29.0
resolution: "react-hook-form@npm:7.29.0"
peerDependencies:
Expand All @@ -21261,6 +21261,15 @@ __metadata:
languageName: node
linkType: hard

"react-hook-form@patch:react-hook-form@npm%3A7.29.0#./.yarn/patches/react-hook-form-npm-7.29.0-baedbea779.patch::locator=pioneer%40workspace%3A.":
version: 7.29.0
resolution: "react-hook-form@patch:react-hook-form@npm%3A7.29.0#./.yarn/patches/react-hook-form-npm-7.29.0-baedbea779.patch::version=7.29.0&hash=baf830&locator=pioneer%40workspace%3A."
peerDependencies:
react: ^16.8.0 || ^17 || ^18
checksum: d37b83db84ee86c77ac467cf9d7c03ad2b60813fc40b7bf1969a21427d495362a21335a388d87411840efec09543df98f7ca1d373713f6fe8be564f5aa8ec785
languageName: node
linkType: hard

"react-i18next@npm:^11.15.1":
version: 11.15.1
resolution: "react-i18next@npm:11.15.1"
Expand Down

0 comments on commit 92eef39

Please sign in to comment.