Skip to content

resolveSelector

resolveSelector<T, R>(fn): Path

Defined in: output-transform/path-proxy.ts:112

Run a selector callback against a proxy and return the resulting Path.

T

R = unknown

Selector<T, R>

Path

const p = resolveSelector<MyOutput>(o => o.users)
// p = [{ kind: 'prop', name: 'users' }]