UNPKG

@sanity/types

Version:

Type definitions for common Sanity data structures

12 lines (8 loc) 260 B
/** @public */ export type KeyedSegment = {_key: string} /** @public */ export type IndexTuple = [number | '', number | ''] /** @public */ export type PathSegment = string | number | KeyedSegment | IndexTuple /** @public */ export type Path = PathSegment[]