From 5c55d59a7d1d799cba7af87e15ab4a4b27a8fc67 Mon Sep 17 00:00:00 2001 From: Ayush Goyal Date: Tue, 14 Jan 2020 22:55:20 +0530 Subject: [PATCH] fix: update the types dep for js-cookie --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 64858f9f44..3d3603c474 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,7 @@ - [**Side-effects**](./docs/Side-effects.md) - [`useAsync`](./docs/useAsync.md), [`useAsyncFn`](./docs/useAsyncFn.md), and [`useAsyncRetry`](./docs/useAsyncRetry.md) — resolves an `async` function. - [`useBeforeUnload`](./docs/useBeforeUnload.md) — shows browser alert when user try to reload or close the page. + - [`useCookie`](./docs/useCookie.md) — provides way to read, update and delete a cookie. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/side-effects-usecookie--demo) - [`useCopyToClipboard`](./docs/useCopyToClipboard.md) — copies text to clipboard. - [`useDebounce`](./docs/useDebounce.md) — debounces a function. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/side-effects-usedebounce--demo) - [`useFavicon`](./docs/useFavicon.md) — sets favicon of the page. @@ -149,7 +150,6 @@ - [**Miscellaneous**]() - [`useEnsuredForwardedRef`](./docs/useEnsuredForwardedRef.md) and [`ensuredForwardRef`](./docs/useEnsuredForwardedRef.md) — use a React.forwardedRef safely. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/state-useensuredforwardedref--demo) -


diff --git a/package.json b/package.json index bdfd897bef..5a94c357d8 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ }, "homepage": "https://github.com/streamich/react-use#readme", "dependencies": { + "@types/js-cookie": "2.2.4", "@xobotyi/scrollbar-width": "1.5.0", "copy-to-clipboard": "^3.2.0", "fast-shallow-equal": "^1.0.0", @@ -80,7 +81,6 @@ "@storybook/react": "5.3.3", "@testing-library/react-hooks": "3.2.1", "@types/jest": "24.0.25", - "@types/js-cookie": "2.2.4", "@types/react": "16.9.11", "babel-core": "6.26.3", "babel-loader": "8.0.6",