@confed/sanity-types 0.1.2-2508141838 → 0.1.2-2508181253
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sanity.types.ts +20 -1
package/package.json
CHANGED
package/sanity.types.ts
CHANGED
|
@@ -138,6 +138,9 @@ export type PtBasic = Array<
|
|
|
138
138
|
_type: 'note'
|
|
139
139
|
_key: string
|
|
140
140
|
}
|
|
141
|
+
| ({
|
|
142
|
+
_key: string
|
|
143
|
+
} & Table)
|
|
141
144
|
>
|
|
142
145
|
|
|
143
146
|
export type Figure = {
|
|
@@ -315,7 +318,7 @@ export type NewsArticle = {
|
|
|
315
318
|
_type: 'accessibleImage'
|
|
316
319
|
}
|
|
317
320
|
body?: PtBasic
|
|
318
|
-
categories: Array<'media' | 'students' | 'employee'>
|
|
321
|
+
categories: Array<'media' | 'students' | 'employee' | 'alumni'>
|
|
319
322
|
dateCreated?: string
|
|
320
323
|
seo?: Seo
|
|
321
324
|
}
|
|
@@ -878,6 +881,20 @@ export type AccessibleImage = {
|
|
|
878
881
|
caption?: string
|
|
879
882
|
}
|
|
880
883
|
|
|
884
|
+
export type Table = {
|
|
885
|
+
_type: 'table'
|
|
886
|
+
rows?: Array<
|
|
887
|
+
{
|
|
888
|
+
_key: string
|
|
889
|
+
} & TableRow
|
|
890
|
+
>
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
export type TableRow = {
|
|
894
|
+
_type: 'tableRow'
|
|
895
|
+
cells?: Array<string>
|
|
896
|
+
}
|
|
897
|
+
|
|
881
898
|
export type MediaTag = {
|
|
882
899
|
_id: string
|
|
883
900
|
_type: 'media.tag'
|
|
@@ -1028,6 +1045,8 @@ export type AllSanitySchemaTypes =
|
|
|
1028
1045
|
| School
|
|
1029
1046
|
| Person
|
|
1030
1047
|
| AccessibleImage
|
|
1048
|
+
| Table
|
|
1049
|
+
| TableRow
|
|
1031
1050
|
| MediaTag
|
|
1032
1051
|
| SanityImagePaletteSwatch
|
|
1033
1052
|
| SanityImagePalette
|