ParameterPath type

Encodes how to reach a particular property on an object.

type ParameterPath =
  | string
  | string[]
  | { [propertyName: string]: ParameterPath }