From db9cdc9afd3a519b25c6932920cf26c41ef13abd Mon Sep 17 00:00:00 2001 From: VividTruthKeeper Date: Fri, 10 Feb 2023 01:20:38 +0500 Subject: [PATCH] news scroll data type --- src/types/store.types.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/types/store.types.ts b/src/types/store.types.ts index 9e973f6..3de8941 100644 --- a/src/types/store.types.ts +++ b/src/types/store.types.ts @@ -1,6 +1,9 @@ // Reducers import { allReducers } from "../store/functionality"; +// Types +import { IPostsData } from "./data.types"; + export interface ActiveLinkType { active: number; } @@ -18,6 +21,14 @@ export interface ILanguageAction { payload: "RU" | "EN" | "TM"; } +export interface INewsScroll { + data: IPostsData[]; +} +export interface INewsScrollAction { + type: "SET_NEWS_SCROLL"; + payload: INewsScroll["data"]; +} + // ALL TYPES BEFORE THIS LINE ================== export type RootState = ReturnType;