@purr-core/hooks.block 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/_hook.d.ts +1 -3
  2. package/package.json +2 -2
package/dist/_hook.d.ts CHANGED
@@ -1,9 +1,7 @@
1
- import { TAny, TFunction } from '@purr-core/utils.definitions';
2
-
3
1
  /**
4
2
  * Alternative for `useMemo` without memorize anything.
5
3
  * @param callback Function callback to be called to get the value.
6
4
  * @returns Value of the block.
7
5
  */
8
- declare const useBlock: (callback: TFunction<TAny>) => any;
6
+ declare const useBlock: <RT>(callback: () => RT) => RT;
9
7
  export default useBlock;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purr-core/hooks.block",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "peerDependencies": {
24
24
  "typescript": "*",
25
25
  "react": "*",
26
- "@purr-core/utils.definitions": "0.0.3"
26
+ "@purr-core/utils.definitions": "0.0.5"
27
27
  },
28
28
  "author": "@DinhThienPhuc",
29
29
  "license": "ISC",