Skip to main content

Action Abstract (core)

Functions

createAction

Create an action creator with optional props

import { createAction } from '@hexajs-dev/core';
function createAction<T extends string>(type: T): () => HexaAction<T>

props

Props creator for actions with payload

import { props } from '@hexajs-dev/core';
function props<P>(): P