Skip to main content

Function: classExtends()

classExtends<T>(value: Ctor, base: T): value is T

Defined in: classExtends.ts:8

Checks whether or not the value class extends the base class.

Type Parameters

Type Parameter
T extends Ctor

Parameters

ParameterTypeDescription
valueCtorThe constructor to be checked against.
baseTThe base constructor.

Returns

value is T