Skip to main content

shallowMergeConfig

function

The default merge strategy for extension configuration is a shallow merge.

function shallowMergeConfig<T extends ExtensionConfigBase>(config: T, overrides?: Partial<T>): T

Import

import { shallowMergeConfig } from '@modular/sdk/editor';

Notes

returns
config if there are no overrides, otherwise `{...config, ...overrides}`