⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
types
/
View File Name :
store.ts
/* eslint-disable no-restricted-imports */ import { Action, addListener as addListenerUntyped, AsyncThunk, AsyncThunkOptions, AsyncThunkPayloadCreator, createAsyncThunk as createAsyncThunkUntyped, PayloadAction, TypedAddListener, } from '@reduxjs/toolkit'; import { useSelector as useSelectorUntyped, TypedUseSelectorHook, useDispatch as useDispatchUntyped, } from 'react-redux'; import { ThunkAction, ThunkDispatch as GenericThunkDispatch } from 'redux-thunk'; import type { createRootReducer } from 'app/core/reducers/root'; import { AppDispatch, RootState } from 'app/store/configureStore'; export type StoreState = ReturnType
>; /* * Utility type to get strongly types thunks */ export type ThunkResult
= ThunkAction
>; export type ThunkDispatch = GenericThunkDispatch
; // Typed useDispatch & useSelector hooks export const useDispatch: () => AppDispatch = useDispatchUntyped; export const useSelector: TypedUseSelectorHook
= useSelectorUntyped; type DefaultThunkApiConfig = { dispatch: AppDispatch; state: StoreState }; export const createAsyncThunk =
( typePrefix: string, payloadCreator: AsyncThunkPayloadCreator
, options?: AsyncThunkOptions
): AsyncThunk
=> createAsyncThunkUntyped
(typePrefix, payloadCreator, options); export const addListener = addListenerUntyped as TypedAddListener
;