Skip to content

Commit

Permalink
export store / MethodFactory types
Browse files Browse the repository at this point in the history
  • Loading branch information
LankyMoose committed Mar 23, 2024
1 parent fbed8a0 commit b045054
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lib/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { cleanupHook, shouldExecHook, useHook } from "./hooks/utils.js"
import { shallowCompare } from "./utils.js"

export { createStore }
export type { Store, MethodFactory }

type MethodFactory<T> = (
setState: (setter: Kaioken.StateSetter<T>) => void,
Expand Down

0 comments on commit b045054

Please sign in to comment.