@sanity/types 5.20.0-next.8 → 5.20.0

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 +3 -3
  2. package/package.json +5 -5
package/lib/index.d.ts CHANGED
@@ -934,7 +934,7 @@ type IntrinsicArrayOfDefinition = { [K in keyof IntrinsicDefinitions]: Omit<Arra
934
934
  initialValue?: InitialValueProperty<any, any>;
935
935
  } };
936
936
  /** @public */
937
- type ArrayOfType<TType extends IntrinsicTypeName = IntrinsicTypeName, TAlias extends IntrinsicTypeName | undefined = undefined> = IntrinsicArrayOfDefinition[TType] | ArrayOfEntry<TypeAliasDefinition<string, TAlias>>;
937
+ type ArrayOfType<TType extends IntrinsicTypeName = IntrinsicTypeName, TAlias extends IntrinsicTypeName | undefined = undefined> = IntrinsicArrayOfDefinition[TType] | ArrayOfEntry<TypeAliasDefinition<AutocompleteString, TAlias>>;
938
938
  /** @public */
939
939
  interface ArrayDefinition extends BaseSchemaDefinition {
940
940
  type: 'array';
@@ -2403,7 +2403,7 @@ type IntrinsicTypeName = IntrinsicDefinitions[keyof IntrinsicDefinitions]['type'
2403
2403
  *
2404
2404
  * @public
2405
2405
  */
2406
- type SchemaTypeDefinition<TType extends IntrinsicTypeName = IntrinsicTypeName> = IntrinsicDefinitions[IntrinsicTypeName] | TypeAliasDefinition<string, TType>;
2406
+ type SchemaTypeDefinition<TType extends IntrinsicTypeName = IntrinsicTypeName> = IntrinsicDefinitions[IntrinsicTypeName] | TypeAliasDefinition<AutocompleteString, TType>;
2407
2407
  /**
2408
2408
  * Represents a reference to another type registered top-level in your schema.
2409
2409
  *
@@ -2464,7 +2464,7 @@ type InlineFieldDefinition = { [K in keyof IntrinsicDefinitions]: Omit<Intrinsic
2464
2464
  *
2465
2465
  * @public
2466
2466
  */
2467
- type FieldDefinition<TType extends IntrinsicTypeName = IntrinsicTypeName, TAlias extends IntrinsicTypeName | undefined = undefined> = (InlineFieldDefinition[TType] | TypeAliasDefinition<string, TAlias>) & FieldDefinitionBase;
2467
+ type FieldDefinition<TType extends IntrinsicTypeName = IntrinsicTypeName, TAlias extends IntrinsicTypeName | undefined = undefined> = (InlineFieldDefinition[TType] | TypeAliasDefinition<AutocompleteString, TAlias>) & FieldDefinitionBase;
2468
2468
  /**
2469
2469
  * Returns wether or not the given type is a document type
2470
2470
  * (eg that it was defined as `type: 'document'`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/types",
3
- "version": "5.20.0-next.8+95a9bca6b8",
3
+ "version": "5.20.0",
4
4
  "description": "Type definitions for common Sanity data structures",
5
5
  "keywords": [
6
6
  "cms",
@@ -47,10 +47,10 @@
47
47
  "react": "^19.2.4",
48
48
  "rimraf": "^6.1.3",
49
49
  "vitest": "^4.0.18",
50
- "@repo/package.config": "5.20.0-next.8+95a9bca6b8",
51
- "@repo/eslint-config": "5.20.0-next.8+95a9bca6b8",
52
- "@repo/test-config": "5.20.0-next.8+95a9bca6b8",
53
- "@repo/tsconfig": "5.20.0-next.8+95a9bca6b8"
50
+ "@repo/eslint-config": "5.20.0",
51
+ "@repo/test-config": "5.20.0",
52
+ "@repo/tsconfig": "5.20.0",
53
+ "@repo/package.config": "5.20.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@types/react": "^19.2"