@reduxjs/toolkit#DeepPartial TypeScript Examples

The following examples show how to use @reduxjs/toolkit#DeepPartial. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: slice.ts    From pintora with MIT License 6 votes vote down vote up
DEFAULT_CONFIG: DeepPartial<PintoraConfig> = {
  themeConfig: {
    theme: 'default',
  },
  sequence: {},
  er: {},
  component: {},
  activity: {},
  mindmap: {},
}
Example #2
Source File: configUtils.spec.ts    From dendron with GNU Affero General Public License v3.0 5 votes vote down vote up
function getConfig(
  override?: DeepPartial<IntermediateDendronConfig>
): IntermediateDendronConfig {
  const config = ConfigUtils.genDefaultConfig();
  return { ...config, ...override } as IntermediateDendronConfig;
}