Home > @skunkteam/types > BaseTypeImpl > combineConfig
Combine two config values into a new value.
Signature:
protected combineConfig(oldConfig: TypeConfig, newConfig: TypeConfig): TypeConfig;
Parameter | Type | Description |
---|---|---|
oldConfig | TypeConfig | the current config of the base type |
newConfig | TypeConfig | the new provided config |
Returns:
TypeConfig
a new config object based on the old and new config
Can be overridden by subclasses to check/change new configs when withConfig
is used.