Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
events /
node_modules /
redux-thunk /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
index.ts
1.77
KB
-rw-rw-r--
types.ts
3.49
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index.ts
import type { Action, AnyAction } from 'redux' import type { ThunkMiddleware } from './types' export type { ThunkAction, ThunkDispatch, ThunkActionDispatch, ThunkMiddleware } from './types' /** A function that accepts a potential "extra argument" value to be injected later, * and returns an instance of the thunk middleware that uses that value */ function createThunkMiddleware< State = any, BasicAction extends Action = AnyAction, ExtraThunkArg = undefined >(extraArgument?: ExtraThunkArg) { // Standard Redux middleware definition pattern: // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware const middleware: ThunkMiddleware<State, BasicAction, ExtraThunkArg> = ({ dispatch, getState }) => next => action => { // The thunk middleware looks for any functions that were passed to `store.dispatch`. // If this "action" is really a function, call it and return the result. if (typeof action === 'function') { // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg" return action(dispatch, getState, extraArgument) } // Otherwise, pass the action down the middleware chain as usual return next(action) } return middleware } const thunk = createThunkMiddleware() as ThunkMiddleware & { withExtraArgument< ExtraThunkArg, State = any, BasicAction extends Action = AnyAction >( extraArgument: ExtraThunkArg ): ThunkMiddleware<State, BasicAction, ExtraThunkArg> } // Attach the factory function so users can create a customized version // with whatever "extra arg" they want to inject into their thunks thunk.withExtraArgument = createThunkMiddleware export default thunk
Close