@pdg/react-hook 2.0.20 → 2.0.22

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.
@@ -1,2 +1,2 @@
1
- import { DependencyList } from 'react';
1
+ import { type DependencyList } from 'react';
2
2
  export declare const useChanged: (callback: () => void, deps: DependencyList) => void;
@@ -1,2 +1,2 @@
1
- import { DependencyList } from 'react';
1
+ import { type DependencyList } from 'react';
2
2
  export declare const useFirstSkipChanged: (callback: () => void, deps: DependencyList) => true | undefined;
@@ -1,2 +1,2 @@
1
- import { DependencyList, EffectCallback } from 'react';
1
+ import { type DependencyList, type EffectCallback } from 'react';
2
2
  export declare const useEventEffect: (effectEventCallback: EffectCallback, deps?: DependencyList) => void;
@@ -1,2 +1,2 @@
1
- import { DependencyList, EffectCallback } from 'react';
1
+ import { type DependencyList, type EffectCallback } from 'react';
2
2
  export declare const useEventLayoutEffect: (effectEventCallback: EffectCallback, deps?: DependencyList) => void;
@@ -1,2 +1,2 @@
1
- import { DependencyList, EffectCallback } from 'react';
1
+ import { type DependencyList, type EffectCallback } from 'react';
2
2
  export declare const useFirstSkipEffect: (effectEventCallback: EffectCallback, deps: DependencyList) => void;
@@ -1,2 +1,2 @@
1
- import { DependencyList, EffectCallback } from 'react';
1
+ import { type DependencyList, type EffectCallback } from 'react';
2
2
  export declare const useFirstSkipLayoutEffect: (effectEventCallback: EffectCallback, deps: DependencyList) => void;
@@ -1,2 +1,2 @@
1
- import { RefObject } from 'react';
1
+ import { type RefObject } from 'react';
2
2
  export declare function useMountedRef(initialValue?: boolean): RefObject<boolean>;
@@ -1,2 +1,2 @@
1
- import { RefObject } from 'react';
1
+ import { type RefObject } from 'react';
2
2
  export declare function useAutoUpdateRef<T>(value: T): RefObject<T>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pdg/react-hook",
3
3
  "title": "Typescript React Hook Module",
4
4
  "description": "Typescript React Hook Module",
5
- "version": "2.0.20",
5
+ "version": "2.0.22",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.esm.js",
@@ -53,18 +53,17 @@
53
53
  "javascript"
54
54
  ],
55
55
  "peerDependencies": {
56
+ "@pdg/types": "^1.0.11",
56
57
  "react": ">=19.0.0",
57
58
  "react-dom": ">=19.0.0"
58
59
  },
59
- "dependencies": {
60
- "@pdg/types": "^1.0.10"
61
- },
62
60
  "devDependencies": {
63
61
  "@babel/core": "^7.28.5",
64
62
  "@babel/preset-env": "^7.28.5",
65
63
  "@babel/preset-react": "^7.28.5",
66
64
  "@babel/preset-typescript": "^7.28.5",
67
65
  "@eslint/js": "9.39.1",
66
+ "@pdg/types": "^1.0.11",
68
67
  "@rollup/plugin-babel": "^6.1.0",
69
68
  "@rollup/plugin-commonjs": "29.0.0",
70
69
  "@rollup/plugin-eslint": "^9.2.0",