Class: ActionDefinition
Represents the definition of an action.
Constructors
Constructor
new ActionDefinition(
func,body?,params?):ActionDefinition
Creates a new instance of the ActionDefinition class.
Parameters
func
the function of an action.
body?
string
the source code of the Action.
params?
ActionParameters = {}
the parameters of the Action.
Returns
ActionDefinition
Properties
body?
readonlyoptionalbody:string
the source code of the Action.
func
readonlyfunc:Func
the function of an action.
params
readonlyparams:ActionParameters={}
the parameters of the Action.
Methods
createFromObject()
staticcreateFromObject(value):ActionDefinition
Correctly creates the ActionDefinition from deserialized data.
Parameters
value
any
the deserialized data.
Returns
ActionDefinition
the ActionDefinition instance.
functionalAction()
staticfunctionalAction(func,params):ActionDefinition
Creates an action from the function.
Parameters
func
the function of an action.
params
ActionParameters = {}
the parameters of the Action.
Returns
ActionDefinition
the new instance of the ActionDefinition class.
sourceAction()
staticsourceAction(body,params):ActionDefinition
Creates an action from the source code.
Parameters
body
string
the source code of the Action.
params
ActionParameters = {}
the parameters of the Action.
Returns
ActionDefinition
the new instance of the ActionDefinition class.