Type alias Getter<T, O, S>

Getter<T, O, S>: ((path: Paths<T, MAX_OBJECT_DEPTH> & string, defaultValue?: S) => O)

Type Parameters

Type declaration

    • (path: Paths<T, MAX_OBJECT_DEPTH> & string, defaultValue?: S): O
    • Curried function to access a value of an object, given a path

      Parameters

      • path: Paths<T, MAX_OBJECT_DEPTH> & string
      • Optional defaultValue: S

      Returns O

Generated using TypeDoc