Skip to main content
zerotal

Documentation


Documentation / @zerotal/flow / index / Mixin

Type Alias: Mixin<TIn, TOut>

Mixin<TIn, TOut> = (Base) => TOut

Defined in: flow/src/mixins.ts:64

A Component mixin: receives a base constructor and returns an extended one. Authors write the generic form so the mixin composes onto whatever base it is given:

export function FileUpload<T extends Constructor>(Base: T) { abstract class WithUpload extends Base { … } return WithUpload; }

Type Parameters

TIn

TIn extends Constructor = Constructor

TOut

TOut extends Constructor = Constructor

Parameters

Base

TIn

Returns

TOut