news scroll data type
This commit is contained in:
parent
f686a985b1
commit
db9cdc9afd
|
|
@ -1,6 +1,9 @@
|
||||||
// Reducers
|
// Reducers
|
||||||
import { allReducers } from "../store/functionality";
|
import { allReducers } from "../store/functionality";
|
||||||
|
|
||||||
|
// Types
|
||||||
|
import { IPostsData } from "./data.types";
|
||||||
|
|
||||||
export interface ActiveLinkType {
|
export interface ActiveLinkType {
|
||||||
active: number;
|
active: number;
|
||||||
}
|
}
|
||||||
|
|
@ -18,6 +21,14 @@ export interface ILanguageAction {
|
||||||
payload: "RU" | "EN" | "TM";
|
payload: "RU" | "EN" | "TM";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface INewsScroll {
|
||||||
|
data: IPostsData[];
|
||||||
|
}
|
||||||
|
export interface INewsScrollAction {
|
||||||
|
type: "SET_NEWS_SCROLL";
|
||||||
|
payload: INewsScroll["data"];
|
||||||
|
}
|
||||||
|
|
||||||
// ALL TYPES BEFORE THIS LINE ==================
|
// ALL TYPES BEFORE THIS LINE ==================
|
||||||
|
|
||||||
export type RootState = ReturnType<typeof allReducers>;
|
export type RootState = ReturnType<typeof allReducers>;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue