a bit of types
This commit is contained in:
1 parent
fd0eb66563
commit
0f211115cf
4 files changed
+12
-13
No files matched your search
+2
-2
@@ -1,5 +1,5 @@
|
||||
export const createStore = (initialState) => {
|
||||
let state = initialState
|
||||
export const createStore = <StateType>(initialState: StateType) => {
|
||||
let state: StateType = initialState
|
||||
const listeners = new Set<() => void>()
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user