collectype

collectype v0.11.0


collectype / types/collection / FunctionsClass

Type Alias: FunctionsClass()<T>

FunctionsClass<T> = (items) => BaseFunctions<T> | FullFunctions<T>

Defined in: types/collection.ts:14

Type for a constructor of a functions class (BaseFunctions or FullFunctions). Used to specify which function class a collection should use for chainable operations.

Type Parameters

T

T

The type of items in the collection.

Parameters

items

T[]

Returns

BaseFunctions<T> | FullFunctions<T>

Example

class MyFunctions extends BaseFunctions<string> {}
const fnClass: FunctionsClass<string> = MyFunctions;