Skip to content

Commit

Permalink
Add RepeatableFields
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-mp committed Nov 27, 2024
1 parent 5b5ae54 commit e2bfcf4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/types/value/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ export type EmptyObjectField = Record<string, never>
*/
export type FieldState = "empty" | "filled"

/**
* Repeatable fields.
*/
export type RepeatableFields = LinkField[]

/**
* Any regular field that can be nested in a group-like field.
*/
Expand All @@ -46,6 +51,7 @@ export type AnyRegularField =
| BooleanField
| GeoPointField
| IntegrationField
| RepeatableFields

/**
* Any field that can be used in a slice's primary section.
Expand Down

0 comments on commit e2bfcf4

Please sign in to comment.