@confed/sanity-types 0.1.2-2508141934 → 0.1.2-2508181710

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sanity.types.ts +19 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confed/sanity-types",
3
- "version": "0.1.2-2508141934",
3
+ "version": "0.1.2-2508181710",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
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 = {
@@ -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