Skip to content

Commit ea51efc

Browse files
committed
fix types
1 parent c79313a commit ea51efc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/common/util/useReducerWithMiddleware/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const useReducerWithMiddleware = (
2727
if (!aRef.current) return;
2828

2929
afterwareFns.forEach((afterwareFn) =>
30-
afterwareFn(aRef.current, state, context ? context.current : undefined),
30+
afterwareFn(aRef.current!, state, context ? context.current : undefined),
3131
);
3232

3333
aRef.current = null;

src/types/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type IdState = {
1414
none?: boolean;
1515
} & State;
1616

17-
export type MiddlewareFunction = (action: Action | Nullish, state: State, context: any) => void;
17+
export type MiddlewareFunction = (action: Action, state: State, context: any) => void;
1818

1919
export type StateAndChange = {
2020
state?: State;

src/types/table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export type TableProps = {
7373

7474
export type TableNode = {
7575
id: string;
76-
nodes?: TableNode[];
76+
nodes?: TableNode[] | Nullish;
7777
[prop: string]: any;
7878
};
7979

0 commit comments

Comments
 (0)