@ngrx/store#ActionCreatorProps TypeScript Examples
The following examples show how to use
@ngrx/store#ActionCreatorProps.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: payload-creator.ts From svvs with MIT License | 6 votes |
/**
* payload is payload-creator function
*
*
* @description
*
* Create payload => action
*/
export function payload<P>(): ActionCreatorProps<{ payload: P }> {
return props<{ payload: P }>()
}
Example #2
Source File: payload-force-creator.ts From svvs with MIT License | 6 votes |
/**
* Payload is payload-creator function with force
*
*
* @description
*
* Create payload force => action
*
*
*/
export function payloadForce<
P extends Record<string, unknown>
>(): ActionCreatorProps<{ payload: P & IActionForcePayload }> {
return props<{ payload: P & IActionForcePayload }>();
}