Skip to main content

@webda/workoutReadme | API


Class: WorkerInput

Represents a Input request

Constructors

new WorkerInput(uuid, title, type, validators)

new WorkerInput(uuid, title, type, validators): WorkerInput

Parameters

uuid: string

title: string

type: WorkerInputType= WorkerInputType.STRING

validators: (string | RegExp)[]= []

Returns

WorkerInput

Source

src/core.ts:69

Properties

title

title: string

Source

src/core.ts:63


type

type: WorkerInputType

Source

src/core.ts:65


uuid

uuid: string

Source

src/core.ts:66


validators

validators: RegExp[]

Source

src/core.ts:64


value?

value?: string

Source

src/core.ts:67

Methods

validate()

validate(input): boolean

Parameters

input: string

Returns

boolean

Source

src/core.ts:92