@sanity/types 6.20.0-next.62 → 6.20.0-next.64

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 -0
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -539,6 +539,10 @@ interface ValidationContext {
539
539
  * Whether this field is hidden for any reason (either itself or any of its ancestors).
540
540
  */
541
541
  hidden?: boolean;
542
+ /**
543
+ * The current user, when available. Absent outside the Studio, eg CLI or headless validation.
544
+ */
545
+ currentUser?: Omit<CurrentUser, 'role'> | null;
542
546
  }
543
547
  /**
544
548
  * The base type for all validators in the validation library. Takes in a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/types",
3
- "version": "6.20.0-next.62",
3
+ "version": "6.20.0-next.64",
4
4
  "description": "Type definitions for common Sanity data structures",
5
5
  "keywords": [
6
6
  "cms",