@sanity/types 4.20.0-next.61 → 4.20.0-next.66

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/lib/index.d.ts +14 -11
  2. package/package.json +5 -5
package/lib/index.d.ts CHANGED
@@ -59,8 +59,7 @@ export declare type ArrayOfType<
59
59
 
60
60
  /** @public */
61
61
  export declare interface ArrayOptions<V = unknown>
62
- extends SearchConfiguration,
63
- BaseSchemaTypeOptions {
62
+ extends SearchConfiguration, BaseSchemaTypeOptions {
64
63
  list?: TitledListValue<V>[] | V[]
65
64
  layout?: 'list' | 'tags' | 'grid'
66
65
  /** @deprecated This option does not have any effect anymore */
@@ -1486,8 +1485,10 @@ export declare interface FileAsset extends Asset {
1486
1485
  }
1487
1486
 
1488
1487
  /** @public */
1489
- export declare interface FileDefinition
1490
- extends Omit<ObjectDefinition, 'type' | 'fields' | 'options' | 'groups' | 'validation'> {
1488
+ export declare interface FileDefinition extends Omit<
1489
+ ObjectDefinition,
1490
+ 'type' | 'fields' | 'options' | 'groups' | 'validation'
1491
+ > {
1491
1492
  type: 'file'
1492
1493
  fields?: ObjectDefinition['fields']
1493
1494
  options?: FileOptions
@@ -1612,8 +1613,10 @@ export declare type GlobalDocumentReferenceFilterSearchOptions = {
1612
1613
  }
1613
1614
 
1614
1615
  /** @beta */
1615
- export declare interface GlobalDocumentReferenceSchemaType
1616
- extends Omit<ObjectSchemaType, 'options'> {
1616
+ export declare interface GlobalDocumentReferenceSchemaType extends Omit<
1617
+ ObjectSchemaType,
1618
+ 'options'
1619
+ > {
1617
1620
  jsonType: 'object'
1618
1621
  to: GlobalDocumentReferenceType[]
1619
1622
  resourceType: string
@@ -1698,8 +1701,10 @@ export declare interface ImageCrop {
1698
1701
  }
1699
1702
 
1700
1703
  /** @public */
1701
- export declare interface ImageDefinition
1702
- extends Omit<ObjectDefinition, 'type' | 'fields' | 'options' | 'groups' | 'validation'> {
1704
+ export declare interface ImageDefinition extends Omit<
1705
+ ObjectDefinition,
1706
+ 'type' | 'fields' | 'options' | 'groups' | 'validation'
1707
+ > {
1703
1708
  type: 'image'
1704
1709
  fields?: FieldDefinition[]
1705
1710
  options?: ImageOptions
@@ -3507,9 +3512,7 @@ export declare interface StringDefinition extends BaseSchemaDefinition {
3507
3512
 
3508
3513
  /** @public */
3509
3514
  export declare interface StringOptions
3510
- extends EnumListProps<string>,
3511
- SearchConfiguration,
3512
- BaseSchemaTypeOptions {}
3515
+ extends EnumListProps<string>, SearchConfiguration, BaseSchemaTypeOptions {}
3513
3516
 
3514
3517
  /** @public */
3515
3518
  export declare interface StringRule extends RuleDef<StringRule, string> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/types",
3
- "version": "4.20.0-next.61+511b7d8f12",
3
+ "version": "4.20.0-next.66+f7d62c602b",
4
4
  "description": "Type definitions for common Sanity data structures",
5
5
  "keywords": [
6
6
  "sanity",
@@ -50,10 +50,10 @@
50
50
  "react": "^19.1.1",
51
51
  "rimraf": "^5.0.10",
52
52
  "vitest": "^3.2.4",
53
- "@repo/eslint-config": "4.20.0-next.61+511b7d8f12",
54
- "@repo/test-config": "4.20.0-next.61+511b7d8f12",
55
- "@repo/package.config": "4.20.0-next.61+511b7d8f12",
56
- "@repo/tsconfig": "4.20.0-next.61+511b7d8f12"
53
+ "@repo/eslint-config": "4.20.0-next.66+f7d62c602b",
54
+ "@repo/package.config": "4.20.0-next.66+f7d62c602b",
55
+ "@repo/test-config": "4.20.0-next.66+f7d62c602b",
56
+ "@repo/tsconfig": "4.20.0-next.66+f7d62c602b"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@types/react": "18 || 19"