Download wp-calypso/packages/data-stores/src/subscriber/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 408 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/subscriber/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/subscriber/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/subscriber/index.ts
408 Bytes
| import { register, createReduxStore } from '@wordpress/data'; | |
| import { createActions } from './actions'; | |
| import { STORE_KEY } from './constants'; | |
| import reducer, { State } from './reducers'; | |
| import * as selectors from './selectors'; | |
| export * from './types'; | |
| export type { State }; | |
| export const store = createReduxStore( STORE_KEY, { | |
| actions: createActions(), | |
| reducer, | |
| selectors, | |
| } ); | |
| register( store ); | |