Skip to content

path

path(…names): Path

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

Create a Path from one or more property names.

string[]

Path

path('user', 'profile', 'email')
// → [{ kind: 'prop', name: 'user' }, { kind: 'prop', name: 'profile' }, { kind: 'prop', name: 'email' }]