Documentation
    Preparing search index...

    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

      Returns boolean