Default configurations aren't applied to `undefined` set properties in a configuration object
bennoinbeta opened this issue Β· comments
π Bug report
π€ Current Behavior
Default properties aren't applied to undefined
set properties.
// Now the default property of 'background'
// can't be applied to the configuration object because it is set.
MY_STATE.set('jeff', {background: undefined});
// internal: config.background; // Returns 'undefined'
π― Expected behavior
Default properties should also be applied to undefined
set properties.
MY_STATE.set('jeff', {background: undefined});
// internal: config.background; // Returns 'defaultConfig'
π‘ Suggested solution(s)
see benchmarks/typescript/defineConfig