@sanity/mutator
Version:
A set of models to make it easier to utilize the powerful real time collaborative features of Sanity
11 lines (10 loc) • 304 B
text/typescript
export interface Probe {
path: (string | number)[]
containerType(): 'object' | 'array' | 'primitive'
length(): number
getIndex(index: number): Probe | false | null
get: () => unknown
getAttribute(attr: string): Probe | null
attributeKeys(): string[]
hasAttribute(attr: string): boolean
}