Spaces:
Paused
Paused
Download node_modules/@reduxjs/toolkit/dist/react/index.d.ts from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 1.95 kB
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40reduxjs/toolkit/dist/react/index.d.ts
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@reduxjs/toolkit/dist/react/index.d.ts
-
curl -L -o index.d.ts https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40reduxjs/toolkit/dist/react/index.d.ts
1.95 kB
| import { DynamicMiddlewareInstance, TSHelpersExtractDispatchExtensions, MiddlewareApiConfig, GetState, GetDispatch } from '@reduxjs/toolkit'; | |
| export * from '@reduxjs/toolkit'; | |
| import { Context } from 'react'; | |
| import { ReactReduxContextValue } from 'react-redux'; | |
| import { Dispatch, UnknownAction, Action, Middleware } from 'redux'; | |
| type UseDispatchWithMiddlewareHook<Middlewares extends Middleware<any, State, DispatchType>[] = [], State = any, DispatchType extends Dispatch<UnknownAction> = Dispatch<UnknownAction>> = () => TSHelpersExtractDispatchExtensions<Middlewares> & DispatchType; | |
| type CreateDispatchWithMiddlewareHook<State = any, DispatchType extends Dispatch<UnknownAction> = Dispatch<UnknownAction>> = { | |
| <Middlewares extends [ | |
| Middleware<any, State, DispatchType>, | |
| ...Middleware<any, State, DispatchType>[] | |
| ]>(...middlewares: Middlewares): UseDispatchWithMiddlewareHook<Middlewares, State, DispatchType>; | |
| withTypes<MiddlewareConfig extends MiddlewareApiConfig>(): CreateDispatchWithMiddlewareHook<GetState<MiddlewareConfig>, GetDispatch<MiddlewareConfig>>; | |
| }; | |
| type ActionFromDispatch<DispatchType extends Dispatch<Action>> = DispatchType extends Dispatch<infer Action> ? Action : never; | |
| type ReactDynamicMiddlewareInstance<State = any, DispatchType extends Dispatch<UnknownAction> = Dispatch<UnknownAction>> = DynamicMiddlewareInstance<State, DispatchType> & { | |
| createDispatchWithMiddlewareHookFactory: (context?: Context<ReactReduxContextValue<State, ActionFromDispatch<DispatchType>> | null>) => CreateDispatchWithMiddlewareHook<State, DispatchType>; | |
| createDispatchWithMiddlewareHook: CreateDispatchWithMiddlewareHook<State, DispatchType>; | |
| }; | |
| declare const createDynamicMiddleware: <State = any, DispatchType extends Dispatch<UnknownAction> = Dispatch<UnknownAction>>() => ReactDynamicMiddlewareInstance<State, DispatchType>; | |
| export { type CreateDispatchWithMiddlewareHook, createDynamicMiddleware }; | |