Skip to main content

Class: Results

Wrapper to easily manage results

Constructors

new Results()

new Results(
uuid: string,
inputs: RawTaskIO[],
outputs: RawTaskIO[]): Results

Parameters

ParameterType

uuid

string

inputs

RawTaskIO[]

outputs

RawTaskIO[]

Returns

Results

Properties

uuid

readonly uuid: string;

Methods

getInput()

getInput<TaskIOType>(index: number): TaskIOType

Type Parameters

Type ParameterDefault type

TaskIOType extends TaskIO<string, any>

TaskIO<string, any>

Parameters

ParameterTypeDefault value

index

number

0

Returns

TaskIOType


getInputs()

getInputs<TaskIOTypes>(): TaskIOTypes

Type Parameters

Type ParameterDefault type

TaskIOTypes extends TaskIO<string, any>[]

TaskIO<string, any>[]

Returns

TaskIOTypes


getOutput()

getOutput<TaskIOType>(index: number): TaskIOType

Type Parameters

Type ParameterDefault type

TaskIOType extends TaskIO<string, any>

TaskIO<string, any>

Parameters

ParameterTypeDefault value

index

number

0

Returns

TaskIOType


getOutputs()

getOutputs<TaskIOTypes>(): TaskIOTypes

Type Parameters

Type ParameterDefault type

TaskIOTypes extends TaskIO<string, any>[]

TaskIO<string, any>[]

Returns

TaskIOTypes


toJSON()

toJSON(): {
inputs: RawTaskIO[];
outputs: RawTaskIO[];
uuid: string;
}

Returns

{
inputs: RawTaskIO[];
outputs: RawTaskIO[];
uuid: string;
}
NameType
inputsRawTaskIO[]
outputsRawTaskIO[]
uuidstring