@sanity/types 6.13.0-next.7 → 6.13.0-next.83

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 +4 -12
  2. package/package.json +2 -2
package/lib/index.d.ts CHANGED
@@ -409,18 +409,7 @@ interface Rule {
409
409
  reference(): Rule;
410
410
  fields(rules: FieldRules): Rule;
411
411
  assetRequired(): Rule;
412
- validate(value: unknown, options: ValidationContext & {
413
- /**
414
- * @deprecated Internal use only
415
- * @internal
416
- */
417
- __internal?: {
418
- customValidationConcurrencyLimiter?: {
419
- ready: () => Promise<void>;
420
- release: () => void;
421
- };
422
- };
423
- }): Promise<ValidationMarker[]>;
412
+ validate(value: unknown, options: ValidationContext): Promise<ValidationMarker[]>;
424
413
  }
425
414
  /** @public */
426
415
  type RuleSpec = {
@@ -532,8 +521,11 @@ interface ValidationContext {
532
521
  path?: Path;
533
522
  getDocumentExists?: (options: {
534
523
  id: string;
524
+ signal?: AbortSignal;
535
525
  }) => Promise<boolean>;
536
526
  environment: 'cli' | 'studio';
527
+ /** Signal used to cancel validation and any work it starts. */
528
+ signal?: AbortSignal;
537
529
  /**
538
530
  * Whether this field is hidden for any reason (either itself or any of its ancestors).
539
531
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/types",
3
- "version": "6.13.0-next.7",
3
+ "version": "6.13.0-next.83",
4
4
  "description": "Type definitions for common Sanity data structures",
5
5
  "keywords": [
6
6
  "cms",
@@ -33,7 +33,7 @@
33
33
  "./package.json": "./package.json"
34
34
  },
35
35
  "dependencies": {
36
- "@sanity/client": "^8.4.0",
36
+ "@sanity/client": "^8.5.0",
37
37
  "@sanity/media-library-types": "^1.6.0"
38
38
  },
39
39
  "devDependencies": {