Interface: ColorField<Nullable>
Defined in: config/types.ts:26
A color field in the format #rrggbb. A nullable color field also accepts null for the theme color.
Extends
FieldBase<"color",Nullableextendstrue?string|null:string>
Type Parameters
| Type Parameter | Default type |
|---|---|
Nullable extends boolean | boolean |
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
default | readonly | Nullable extends true ? string | null : string | - | FieldBase.default | config/types.ts:11 |
description | readonly | string | One sentence that tells what the field changes. | FieldBase.description | config/types.ts:6 |
kind | readonly | "color" | - | FieldBase.kind | config/types.ts:10 |
label | readonly | string | The short name of the field. | FieldBase.label | config/types.ts:4 |
nullable | readonly | Nullable | True if the field accepts null. | - | config/types.ts:29 |
Methods
parse()
ts
parse(input): Nullable extends true ? string | null : string | undefined;Defined in: config/types.ts:12
Parameters
| Parameter | Type |
|---|---|
input | unknown |
Returns
Nullable extends true ? string | null : string | undefined
Inherited from
ts
FieldBase.parse