Function throwTypeMismatch

  • Throws an error indicating a type mismatch for a specified argument position. This function helps in debugging by providing clear feedback on expected types.

    Parameters

    • expectedType: string

      The type that was expected for the argument.

    • position: number

      The position of the argument that caused the type mismatch.

    Returns void