File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ import type { CustomTypeModelFieldType } from "./types"
2
+
3
+ /**
4
+ * A table custom type field.
5
+ *
6
+ * More details: {@link https://prismic.io/docs/table}
7
+ */
8
+ export interface CustomTypeModelTableField {
9
+ type : typeof CustomTypeModelFieldType . Table
10
+ config ?: {
11
+ label ?: string | null
12
+ }
13
+ }
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import type { CustomTypeModelRichTextField } from "./richText"
19
19
import type { CustomTypeModelSelectField } from "./select"
20
20
import type { CustomTypeModelSeparatorField } from "./separator"
21
21
import type { CustomTypeModelSliceZoneField } from "./sliceZone"
22
+ import type { CustomTypeModelTableField } from "./table"
22
23
import type { CustomTypeModelTimestampField } from "./timestamp"
23
24
import type { CustomTypeModelTitleField } from "./title"
24
25
import type { CustomTypeModelUIDField } from "./uid"
@@ -40,6 +41,7 @@ export const CustomTypeModelFieldType = {
40
41
Select : "Select" ,
41
42
Slices : "Slices" ,
42
43
StructuredText : "StructuredText" ,
44
+ Table : "Table" ,
43
45
Text : "Text" ,
44
46
Timestamp : "Timestamp" ,
45
47
UID : "UID" ,
@@ -102,6 +104,7 @@ export type CustomTypeModelFieldForNestedGroup =
102
104
| CustomTypeModelRangeField
103
105
| CustomTypeModelSelectField
104
106
| CustomTypeModelRichTextField
107
+ | CustomTypeModelTableField
105
108
| CustomTypeModelTitleField
106
109
| CustomTypeModelKeyTextField
107
110
| CustomTypeModelTimestampField
You can’t perform that action at this time.
0 commit comments