Typedef

Constructor (utils)

@ckeditor/ckeditor5-utils/src/mix

typedeffunction

Helper type that represents constructor creating given objects. Can be used as a type constraint.

// The function accepts any class constructor.
function MyFunction<Ctor extends Constructor>( ctor: Ctor ) {
	// ...
}

// The function accepts any class constructor of type derived from `MyBase`.
function MyFunction<Ctor extends Constructor<MyBase>>( ctor: Ctor ) {
	// ...
}

Filtering

Parameters

args : Array<any>

Returns

Instance