11 lines
186 B
TypeScript
11 lines
186 B
TypeScript
|
export interface ReducerData {
|
||
|
contents: string[]
|
||
|
}
|
||
|
|
||
|
export type ReduxActionData<T> = {
|
||
|
type: any
|
||
|
payload?: T
|
||
|
}
|
||
|
|
||
|
export type ReduxAction<T> = (data: T) => ReduxActionData<T>
|