Skip to content

Commit 983d50a

Browse files
committed
lint update
1 parent 9becbe3 commit 983d50a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/logic/storeFactory.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ function StoreFactory() {
1010
let state: GlobalState = {};
1111
const listeners = new Set<() => void>();
1212

13-
const setState = (dispatchAction: ((payload: GlobalState) => GlobalState) | GlobalState) => {
14-
state = typeof dispatchAction === 'function' ? dispatchAction(state) : state;
13+
const setState = (
14+
dispatchAction: ((payload: GlobalState) => GlobalState) | GlobalState,
15+
) => {
16+
state =
17+
typeof dispatchAction === 'function' ? dispatchAction(state) : state;
1518

1619
for (const listener of listeners) {
1720
listener();

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type StateMachineOptions = Partial<{
2626
name: string;
2727
middleWares: MiddleWare[];
2828
storageType: Storage;
29-
persist: typeof PERSIST_OPTION[keyof typeof PERSIST_OPTION];
29+
persist: (typeof PERSIST_OPTION)[keyof typeof PERSIST_OPTION];
3030
}>;
3131

3232
declare global {

0 commit comments

Comments
 (0)