@sanity/types 6.20.0-next.58 → 6.20.0-next.63
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.
- package/lib/index.d.ts +4 -0
- 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
|