Function hasOptionalPropertyT

  • Check if an object has an optional property and if it has it, if the type is right

    Type Parameters

    • Obj extends object

    • T

    Parameters

    • obj: Obj
    • property: string
    • isT: ((t: unknown) => t is T)
        • (t: unknown): t is T
        • Parameters

          • t: unknown

          Returns t is T

    Returns boolean

Generated using TypeDoc