Type Aliases
The following type aliases are available globally.
-
Platform depended implementation of view
-
Platform depended implementation of view
Declaration
Swift
public typealias PlatformView = NSView -
JSON dictionary.
Declaration
Swift
public typealias JSON = [String : Any]
-
Handler that allows some custom action to be performed for
AsyncProcessStep, with the return value used to drive control flow of the steps.Declaration
Swift
public typealias AsyncProcessStepHandler = (_ model: JSON, _ completion: @escaping (JSON, StepFlowResult) -> Void) -> VoidParameters
modelThe model JSON dictionary.
Return Value
A tuple with the modified model and a
StepFlowResultwhich allows control flow of the steps. -
Callback that should be invoked when the step’s
runmethod is complete, and can provides instruction on what to do next (e.g. proceed or fail).Declaration
Swift
public typealias StepCompletionCallback = (_ result: StepCompletionResult) -> VoidParameters
resultResult indicating what to do next (i.e. control flow instruction). The JSON model must be provided to pass onto the next step.
-
Handler that allows some custom action to be performed for
ProcessStep, with the return value used to drive control flow of the steps.Declaration
Swift
public typealias ProcessStepHandler = (_ model: inout JSON) -> StepFlowResultParameters
modelThe model JSON dictionary which can be modified by the step.
Return Value
The
StepFlowResultwhich allows control flow of the steps. -
Callback invoked when a
ScriptSteporAsyncScriptStepis finished.Declaration
Swift
public typealias ScriptStepHandler = (_ response: Any?, _ model: inout JSON) -> StepFlowResultParameters
responseData returned from JavaScript.
modelThe model JSON dictionary which can be modified by the step.
Return Value
The
StepFlowResultwhich allows control flow of the steps.
View on GitHub
Install in Dash
Type Aliases Reference