Skip to main content

Class: TextIO

Extends

  • TaskIO<"TEXT", { fields: RawTextField[]; referenceImageIndex: number; }>

Constructors

new TextIO()

new TextIO(raw: RawTextIO, referenceImage?: ImageIO): TextIO

Parameters

ParameterType

raw

RawTextIO

referenceImage?

ImageIO

Returns

TextIO

Overrides

TaskIO.constructor

Properties

fields

readonly fields: TextField[];

raw

readonly raw: RawTaskIO<"TEXT", {
fields: RawTextField[];
referenceImageIndex: number;
}>;

Inherited from

TaskIO.raw


referenceImage?

readonly optional referenceImage: ImageIO;

Accessors

data

get data(): RawData

Returns

RawData

Inherited from

TaskIO.data


key

get key(): Key

Returns

Key

Inherited from

TaskIO.key

Methods

toJSON()

toJSON(): RawTaskIO<"TEXT", {
fields: RawTextField[];
referenceImageIndex: number;
}>

Returns

RawTaskIO<"TEXT", { fields: RawTextField[]; referenceImageIndex: number; }>

Inherited from

TaskIO.toJSON