Server IP : 172.67.158.161 / Your IP : 3.139.80.106 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/thietke365.net/wp-content/plugins/woocommerce/packages/woocommerce-blocks/assets/js/data/payment/ |
Upload File : |
/** * External dependencies */ import { createReduxStore, register } from '@wordpress/data'; import { controls as dataControls } from '@wordpress/data-controls'; /** * Internal dependencies */ import reducer from './reducers'; import { STORE_KEY } from './constants'; import * as actions from './actions'; import { controls as sharedControls } from '../shared-controls'; import * as selectors from './selectors'; import { DispatchFromMap, SelectFromMap } from '../mapped-types'; export const config = { reducer, selectors, actions, // eslint-disable-next-line @typescript-eslint/no-explicit-any controls: { ...dataControls, ...sharedControls } as any, __experimentalUseThunks: true, }; const store = createReduxStore( STORE_KEY, config ); register( store ); declare module '@wordpress/data' { function dispatch( key: typeof STORE_KEY ): DispatchFromMap< typeof actions >; function select( key: typeof STORE_KEY ): SelectFromMap< typeof selectors > & { hasFinishedResolution: ( selector: string ) => boolean; }; } export const PAYMENT_STORE_KEY = STORE_KEY;