@chhsiao1981/use-thunk 9.0.1 → 9.0.2
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.
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/types/index.d.ts +2 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -15,10 +15,11 @@ import { setData } from './setData'
|
|
|
15
15
|
import { getNode, getRootID, getState } from './states'
|
|
16
16
|
import type { ClassState, NodeMeta, NodeState, NodeStateMap, State } from './stateTypes'
|
|
17
17
|
import type { ThunkModule, ThunkModuleToFunc } from './thunk'
|
|
18
|
-
import useThunk from './useThunk'
|
|
18
|
+
import useThunk, { type UseThunk } from './useThunk'
|
|
19
19
|
|
|
20
20
|
export {
|
|
21
21
|
useThunk,
|
|
22
|
+
type UseThunk,
|
|
22
23
|
// StateType, // XXX for global state
|
|
23
24
|
type State,
|
|
24
25
|
type NodeState,
|
package/types/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ import { setData } from './setData';
|
|
|
15
15
|
import { getNode, getRootID, getState } from './states';
|
|
16
16
|
import type { ClassState, NodeMeta, NodeState, NodeStateMap, State } from './stateTypes';
|
|
17
17
|
import type { ThunkModule, ThunkModuleToFunc } from './thunk';
|
|
18
|
-
import useThunk from './useThunk';
|
|
19
|
-
export { useThunk, type State, type NodeState, type NodeMeta, type NodeStateMap, type ClassState, type GetClassState, type Thunk, type ThunkModule, type ThunkModuleToFunc, type Dispatch, type DispatchFuncMap, getRootID, getNode, getState, getChildIDs, getChildID, getLinkIDs, getLinkID, init, type InitParams, setData, remove, addChild, removeChild, addLink, removeLink, type AddRelationAction, type RemoveRelationAction, genUUID, };
|
|
18
|
+
import useThunk, { type UseThunk } from './useThunk';
|
|
19
|
+
export { useThunk, type UseThunk, type State, type NodeState, type NodeMeta, type NodeStateMap, type ClassState, type GetClassState, type Thunk, type ThunkModule, type ThunkModuleToFunc, type Dispatch, type DispatchFuncMap, getRootID, getNode, getState, getChildIDs, getChildID, getLinkIDs, getLinkID, init, type InitParams, setData, remove, addChild, removeChild, addLink, removeLink, type AddRelationAction, type RemoveRelationAction, genUUID, };
|