@sanity/types 6.6.0-next.73 → 6.6.0-next.76

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 +13 -13
  2. package/package.json +4 -4
package/lib/index.d.ts CHANGED
@@ -199,7 +199,7 @@ type CurrentUserAttribute = { [T in UserAttributeType]: {
199
199
  key: string;
200
200
  type: T;
201
201
  value: UserAttributeValueByType[T];
202
- } }[UserAttributeType];
202
+ }; }[UserAttributeType];
203
203
  /** @public */
204
204
  interface CurrentUser {
205
205
  id: string;
@@ -631,7 +631,7 @@ type Validator<T = any, Value = any> = (constraint: T, value: Value, message: st
631
631
  */
632
632
  type Validators = Partial<{ [P in RuleSpec['flag']]: Validator<Exclude<ConditionalIndexAccess<Extract<RuleSpec, {
633
633
  flag: P;
634
- }>, 'constraint'>, FieldReference>> }>;
634
+ }>, 'constraint'>, FieldReference>>; }>;
635
635
  /** @internal */
636
636
  interface ValidationErrorOptions {
637
637
  paths?: Path[];
@@ -948,27 +948,27 @@ type ArrayActionName =
948
948
  /**
949
949
  * Add any item to the array at any position
950
950
  */
951
- 'add'
951
+ 'add' |
952
952
  /**
953
953
  * Add item after an existing item
954
954
  */
955
- | 'addBefore'
955
+ 'addBefore' |
956
956
  /**
957
957
  * Add item after an existing item
958
958
  */
959
- | 'addAfter'
959
+ 'addAfter' |
960
960
  /**
961
961
  * Remove any item
962
962
  */
963
- | 'remove'
963
+ 'remove' |
964
964
  /**
965
965
  * Duplicate item
966
966
  */
967
- | 'duplicate'
967
+ 'duplicate' |
968
968
  /**
969
969
  * Copy item
970
970
  */
971
- | 'copy';
971
+ 'copy';
972
972
  /** @public */
973
973
  interface ArrayOptions<V = unknown> extends SearchConfiguration, BaseSchemaTypeOptions {
974
974
  list?: TitledListValue<V>[] | V[];
@@ -1007,7 +1007,7 @@ type ArrayOfEntry<T> = Omit<T, 'name' | 'hidden'> & {
1007
1007
  type IntrinsicArrayOfDefinition = { [K in keyof IntrinsicDefinitions]: Omit<ArrayOfEntry<IntrinsicDefinitions[K]>, 'validation' | 'initialValue'> & {
1008
1008
  validation?: SchemaValidationValue;
1009
1009
  initialValue?: InitialValueProperty<any, any>;
1010
- } };
1010
+ }; };
1011
1011
  /** @public */
1012
1012
  type ArrayOfType<TType extends IntrinsicTypeName = IntrinsicTypeName, TAlias extends IntrinsicTypeName | undefined = undefined> = IntrinsicArrayOfDefinition[TType] | ArrayOfEntry<TypeAliasDefinition<AutocompleteString, TAlias>>;
1013
1013
  /** @public */
@@ -1761,9 +1761,9 @@ interface DefineSchemaOptions<TStrict extends StrictDefinition, TAlias extends I
1761
1761
  aliasFor?: TAlias extends IntrinsicTypeName ? TAlias : never;
1762
1762
  }
1763
1763
  /** @beta */
1764
- type IntrinsicBase = { [K in keyof IntrinsicDefinitions]: Omit<IntrinsicDefinitions[K], 'preview'> };
1764
+ type IntrinsicBase = { [K in keyof IntrinsicDefinitions]: Omit<IntrinsicDefinitions[K], 'preview'>; };
1765
1765
  /** @beta */
1766
- type IntrinsicArrayOfBase = { [K in keyof IntrinsicDefinitions]: Omit<ArrayOfEntry<IntrinsicDefinitions[K]>, 'preview'> };
1766
+ type IntrinsicArrayOfBase = { [K in keyof IntrinsicDefinitions]: Omit<ArrayOfEntry<IntrinsicDefinitions[K]>, 'preview'>; };
1767
1767
  /** @beta */
1768
1768
  type DefineSchemaBase<TType extends string, TAlias extends IntrinsicTypeName | undefined> = TType extends IntrinsicTypeName ? IntrinsicBase[TType] : TypeAliasDefinition<TType, TAlias>;
1769
1769
  /** @beta */
@@ -2137,7 +2137,7 @@ interface SortOrderingItem {
2137
2137
  type I18nTextRecord<K extends string> = { [P in K]?: {
2138
2138
  key: string;
2139
2139
  ns: string;
2140
- } };
2140
+ }; };
2141
2141
  /** @beta */
2142
2142
  type SortOrdering = {
2143
2143
  title: string;
@@ -2595,7 +2595,7 @@ interface FieldDefinitionBase {
2595
2595
  type InlineFieldDefinition = { [K in keyof IntrinsicDefinitions]: Omit<IntrinsicDefinitions[K], 'initialValue' | 'validation'> & {
2596
2596
  validation?: SchemaValidationValue;
2597
2597
  initialValue?: InitialValueProperty<any, any>;
2598
- } };
2598
+ }; };
2599
2599
  /**
2600
2600
  * The shape of a field definition. Note, it's recommended to use the
2601
2601
  * `defineField` function instead of using this type directly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/types",
3
- "version": "6.6.0-next.73",
3
+ "version": "6.6.0-next.76",
4
4
  "description": "Type definitions for common Sanity data structures",
5
5
  "keywords": [
6
6
  "cms",
@@ -46,9 +46,9 @@
46
46
  "rimraf": "^6.1.3",
47
47
  "vite": "^8.1.5",
48
48
  "vitest": "^4.1.10",
49
- "@repo/tsconfig": "6.6.0-next.73+8fd2365301",
50
- "@repo/test-config": "6.6.0-next.73+8fd2365301",
51
- "@repo/package.config": "6.6.0-next.73+8fd2365301"
49
+ "@repo/test-config": "6.6.0-next.76+26ea465b45",
50
+ "@repo/tsconfig": "6.6.0-next.76+26ea465b45",
51
+ "@repo/package.config": "6.6.0-next.76+26ea465b45"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@types/react": "*"