Function createAssert

  • Creates a reusable assert function.

    Parameters

    Returns never

    Nothing until you configure the generic argument T

    You must configure the generic argument T

    compile error

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

  • Creates a reusable assert function.

    Type Parameters

    • T

      Type of the input value

    Parameters

    Returns ((input: unknown) => T)

    A reusable assert function

      • (input): T
      • Parameters

        • input: unknown

        Returns T

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