Function isClassAssignableTo

  • Tests whether an unknown value is a class constructor that is either equal to or extends another class constructor.

    Type Parameters

    Parameters

    • value: unknown

      The value to test.

    • cls: C

      The class to test against.

    Returns value is C