Function createAssertHeaders

  • Creates a reusable assertHeaders function.

    Parameters

    Returns never

    You must configure the generic argument T

    compile error

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

  • Creates a reusable assertHeaders function.

    Type Parameters

    • T extends object

      The type of the headers object

    Parameters

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

    A reusable assertHeaders function

      • (input): T
      • Parameters

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

        Returns T

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