Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History
53 lines (28 loc) · 1.16 KB

_actions_.md

File metadata and controls

53 lines (28 loc) · 1.16 KB

@cobuildlab/react-simple-state"actions"

Module: "actions"

Index

Functions

Functions

createAction

createActionT, U, E, R›(event: Event‹T, R›, errorEvent: Event‹E, E›, action: function): ActionType‹T, U, E, R›

Defined in src/actions.ts:10

Type parameters:

T

U: any[]

E

R

Parameters:

event: Event‹T, R›

Event to bind the action.

errorEvent: Event‹E, E›

Event to bind on error.

action: function

Action to call.

▸ (...params: keyof []): Promise‹CheckGeneric‹T, R››

Parameters:

Name Type
...params keyof []

Returns: ActionType‹T, U, E, R›

  • Function with the binded event.