collectype / types/collection / ChainableMethod
ChainableMethod<
T> = (…args) =>T
Defined in: types/collection.ts:42
Type for a chainable method that accepts any arguments and returns the instance (this).
Used for methods that support chaining in collection/function classes.
T
The type of the instance returned for chaining.
…any[]
Arguments for the method.
T
The instance for chaining.
class MyClass {
set(val: number): this { ...; return this; }
}