Skip to content

Class: AskStringField

Defined in: packages/core/src/core/elicitation/types.ts:87

String field descriptor — ask.string('Name')

Extends

Constructors

Constructor

ts
new AskStringField(description): AskStringField;

Defined in: packages/core/src/core/elicitation/types.ts:51

Parameters

ParameterType
descriptionstring | undefined

Returns

AskStringField

Inherited from

ts
AskField<string>.constructor

Properties

__type

ts
readonly __type: string;

Defined in: packages/core/src/core/elicitation/types.ts:44

Phantom brand for type inference — never accessed at runtime

Inherited from

AskField.__type

Methods

default()

ts
default(value): this;

Defined in: packages/core/src/core/elicitation/types.ts:61

Set a default value for this field.

Parameters

ParameterTypeDescription
valuestringDefault value shown pre-filled in the client form

Returns

this

this for chaining

Inherited from

AskField.default


describe()

ts
describe(desc): this;

Defined in: packages/core/src/core/elicitation/types.ts:72

Set or override the field description.

Parameters

ParameterTypeDescription
descstringHuman-readable label/description

Returns

this

this for chaining

Inherited from

AskField.describe