Function createIsHeaders

  • Creates a reusable isHeaders function.

    Returns never

    You must configure the generic argument T

    compile error

    Jeongho Nam - https://github.com/samchon

  • Creates a reusable isHeaders function.

    Type Parameters

    • T extends object

      The type of the headers object

    Returns ((input: Record<string, string | string[] | undefined>) => T | null)

    A reusable isHeaders function

      • (input): T | null
      • Parameters

        • input: Record<string, string | string[] | undefined>

        Returns T | null

    Jeongho Nam - https://github.com/samchon