2021-10-06 20:47:50 +00:00
|
|
|
import { EntityAction, EntityName, ExtraActionProps } from './types'
|
2021-02-06 19:15:33 +00:00
|
|
|
|
2021-10-06 20:47:50 +00:00
|
|
|
export const loadAction = <T>(
|
|
|
|
entity: EntityName,
|
|
|
|
extra: ExtraActionProps<T>
|
|
|
|
): EntityAction<T> => ({
|
2021-02-06 20:06:49 +00:00
|
|
|
entity,
|
|
|
|
extra,
|
|
|
|
type: 'GET_FROM_API',
|
|
|
|
})
|