Functions
defineActionToken
declaration
defineActionToken<
TName,TInput,TOutput>(action:TName,meta: {input?:TInput;output?:TOutput; }):ActionToken<{input:TInput;name:TName;output:TOutput; }>
Define an action-token.
Returns a tagged string that can be used to identify the action.
It is recommended to use a namespaced name like my-package/newsletter/custom-action to avoid conflicts with other packages.
Type Parameters
| Type Parameter | Default type |
|---|---|
| ‐ |
|
|
|
|
Parameters
| Parameter | Type |
|---|---|
|
|
| { |
|
|
|
|
Returns
ActionToken<{ input: TInput; name: TName; output: TOutput; }>