extendMaker
extendMaker<
TBaseComps
,TBaseOpt
,TNewComps
,TNewOpt
>(baseMaker
,defaultOpt
,componentsApply
):MakerFN
<TNewOpt
&TBaseOpt
,TNewComps
&TBaseComps
>
Extend a maker with new components.
Type parameters
Type parameter | Description |
---|---|
TBaseComps | The base components from the base maker |
TBaseOpt | The base options from the base maker |
TNewComps | The new components added to the base |
TNewOpt | The new options added to the base |
Parameters
Parameter | Type | Description |
---|---|---|
baseMaker | MakerFN <TBaseOpt , TBaseComps > | The base maker to extend. Example: makeObject |
defaultOpt | OptionFN <TNewOpt > | OptionFN <TNewOpt & TBaseOpt > | An options object created with makeOptions |
componentsApply | ApplierFN <TNewComps , TNewOpt & TBaseOpt > | - |
Returns
MakerFN
<TNewOpt
& TBaseOpt
, TNewComps
& TBaseComps
>
A new maker with the new components and options
Source
global.d.ts:12