news scroll data type

This commit is contained in:
VividTruthKeeper 2023-02-10 01:20:38 +05:00
parent f686a985b1
commit db9cdc9afd
1 changed files with 11 additions and 0 deletions

View File

@ -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>;