Skip to content

Commit 2a88961

Browse files
committed
Add interfaces for redux actions and starte
1 parent d0c13a2 commit 2a88961

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/features/counter/types.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { INCREMENT_COUNTER, DECREMENT_COUNTER } from './actionTypes'
2+
3+
interface IncrementCounterAction {
4+
type: typeof INCREMENT_COUNTER
5+
}
6+
interface DecrementCounterAction {
7+
type: typeof DECREMENT_COUNTER
8+
}
9+
export type CounterActionTypes = IncrementCounterAction | DecrementCounterAction
10+
11+
export interface SystemState {
12+
count: {
13+
value: number
14+
}
15+
}

0 commit comments

Comments
 (0)