Skip to content

Commit 05726c2

Browse files
authored
Merge pull request #27 from alevnyacow/tsdoc-improvements
Fixed some TSDoc errors
2 parents 7a5b897 + 40c8f69 commit 05726c2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alevnyacow/shared-react-variables",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "Easy and comfortable React state manager",
55
"main": "transpiled/index.js",
66
"scripts": {

sources/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ type ReactVariableRewriteHook<T> = () => (
1111

1212
/**
1313
* Generates a tuple of two hooks: first hook is a React variable generator,
14-
* second hook can be used to rewrite a whole variable (you don't need this most likely).
14+
* second hook can be used to rewrite a whole variable (you don't need this, most likely).
1515
*
16-
* @param initialState Initial state of shared React variable.
16+
* @param initialState Initial state of a shared React variable.
1717
*/
1818
function createUseSharedVariable<T extends object>(initialState: T) {
1919
const variableIdentifier = v4();
@@ -25,7 +25,7 @@ function createUseSharedVariable<T extends object>(initialState: T) {
2525
/**
2626
* React hook returning shared React variable.
2727
*
28-
* @param rerenderOnChange Flag can be used to prevent a rerender on React variable changes, when set to true.
28+
* @param rerenderOnChange Flag can be used to prevent a rerender on React variable changes, when set to false.
2929
*/
3030
const useSharedVariable: ReactVariableHook<T> = (
3131
rerenderOnChange = true

tests/test-application/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@alevnyacow/shared-react-variables": "file:../../alevnyacow-shared-react-variables-2.0.3.tgz",
6+
"@alevnyacow/shared-react-variables": "file:../../alevnyacow-shared-react-variables-2.0.4.tgz",
77
"@testing-library/jest-dom": "^5.16.2",
88
"@testing-library/react": "^12.1.4",
99
"@testing-library/user-event": "^13.5.0",

0 commit comments

Comments
 (0)