Download wp-calypso/packages/data-stores/src/stepper-internal/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 662 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/stepper-internal/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/stepper-internal/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/stepper-internal/index.ts
662 Bytes
| import { registerStore } from '@wordpress/data'; | |
| import { controls } from '@wordpress/data-controls'; | |
| import { registerPlugins } from '../plugins'; | |
| import * as actions from './actions'; | |
| import { STORE_KEY } from './constants'; | |
| import reducer, { State } from './reducer'; | |
| import * as selectors from './selectors'; | |
| import type { SelectFromMap } from '../mapped-types'; | |
| export type { State }; | |
| export type StepperInternalSelect = SelectFromMap< typeof selectors >; | |
| export function register(): typeof STORE_KEY { | |
| registerPlugins(); | |
| registerStore( STORE_KEY, { | |
| actions, | |
| controls, | |
| reducer, | |
| selectors, | |
| persist: [ 'stepData' ], | |
| } ); | |
| return STORE_KEY; | |
| } | |