Skip to content

Path

Path = readonly PathSegment[]

Defined in: output-transform/path.ts:36

An ordered sequence of property accesses through an object graph. Replaces stringly-typed dot-paths like 'user.profile.email'.

// Equivalent to the string 'user.profile.email'
const p: Path = [
{ kind: 'prop', name: 'user' },
{ kind: 'prop', name: 'profile' },
{ kind: 'prop', name: 'email' },
]