Skip to content

Commit 340dbea

Browse files
chore(deps-dev): bump typescript from 4.3.5 to 4.4.2 (#347)
* chore(deps-dev): bump typescript from 4.3.5 to 4.4.2 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/commits) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fix: correct Error handling according to typescript upgrade Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Emmanuel Chambon <[email protected]>
1 parent 8c4cedb commit 340dbea

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/use-dataloader/src/useDataLoader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ const useDataLoader = <T>(
129129

130130
await onSuccess?.(result)
131131
} catch (err) {
132-
dispatch(Actions.createOnError(err))
133-
await ((onError ?? onErrorProvider)?.(err))
132+
dispatch(Actions.createOnError(err as Error))
133+
await ((onError ?? onErrorProvider)?.(err as Error))
134134
}
135135
},
136136
[

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"noEmit": true,
34
"target": "esnext",
45
"lib": [
56
"DOM",

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8508,9 +8508,9 @@ typedarray@^0.0.6:
85088508
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
85098509

85108510
typescript@^4.3.5:
8511-
version "4.3.5"
8512-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"
8513-
integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==
8511+
version "4.4.2"
8512+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.2.tgz#6d618640d430e3569a1dfb44f7d7e600ced3ee86"
8513+
integrity sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==
85148514

85158515
uglify-js@^3.1.4:
85168516
version "3.13.5"

0 commit comments

Comments
 (0)