Skip to content

@pumpkin-plugins/config API / fields / str

Function: str() ​

A text setting, optionally restricted by a check.

Param ​

options

Description, optional check and, unless the setting is optional, its default.

Throws ​

When the configured default or example does not pass the string check.

Call Signature ​

str(options): Field<string>

Defined in: tools/config/src/fields.ts:159

A text setting, optionally restricted by a check.

Parameters ​

options ​

BaseOptions<string> & object

Returns ​

Field<string>

Call Signature ​

str(options): Field<string | undefined>

Defined in: tools/config/src/fields.ts:160

A text setting, optionally restricted by a check.

Parameters ​

options ​

BaseOptions<string> & object

Returns ​

Field<string | undefined>

pumpkin-plugins documentation