Skip to content

Commit

Permalink
Merge pull request #27 from CloudCannon/fix/boolean-input
Browse files Browse the repository at this point in the history
fix: add boolean input
  • Loading branch information
bglw authored Nov 29, 2024
2 parents 9a40c3d + d7ef8f5 commit 09ddee9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/configuration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,10 @@ export interface ColorInput extends BaseInput {
options?: ColorInputOptions;
}

export interface BooleanInput extends Omit<BaseInput, 'options'> {
type: 'checkbox' | 'switch';
}

export interface NumberInputOptions extends WithEmptyTypeNumber {
/**
* The lowest value in the range of permitted values.
Expand Down Expand Up @@ -1119,10 +1123,6 @@ export interface ArrayInput extends BaseInput {

export interface UnknownInput extends BaseInput {
type?: 'auto' | undefined;
/**
* Options that are specific to this `type` of input.
*/
options?: WithEmptyTypeText;
}

export type Input =
Expand All @@ -1131,11 +1131,13 @@ export type Input =
| TextInput
| CodeInput
| ColorInput
| BooleanInput
| NumberInput
| RangeInput
| UrlInput
| RichTextInput
| DateInput
| TimeInput
| FileInput
| ImageInput
| SelectInput
Expand Down

0 comments on commit 09ddee9

Please sign in to comment.