Interface NakedPropGetters<T, K>

Type Parameters

  • T extends object

  • K extends keyof T = keyof T

Hierarchy

  • NakedPropGetters

Properties

orCrash: (<KK, R>(k, errorFactory?) => WithoutOptValues<R>)

Type declaration

    • <KK, R>(k, errorFactory?): WithoutOptValues<R>
    • Type Parameters

      • KK extends string | number | symbol

      • R

      Parameters

      • k: KK
      • Optional errorFactory: string | ((key) => string | Error)

      Returns WithoutOptValues<R>

orNull: (<KK, R>(k) => null | WithoutOptValues<R>)

Type declaration

orUndef: (<KK, R>(k) => undefined | WithoutOptValues<R>)

Type declaration

orZero: (<KK, R>(k) => 0 | WithoutOptValues<R>)

Type declaration

prop: (<KK, R>(k) => OptSafe<R>)

Type declaration

    • <KK, R>(k): OptSafe<R>
    • Type Parameters

      • KK extends string | number | symbol

      • R

      Parameters

      • k: KK

      Returns OptSafe<R>

Generated using TypeDoc