MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getDefaultedConfig

Function getDefaultedConfig

src/persisters/common/database/config.ts:91–99  ·  view source on GitHub ↗
(
  configOrStoreTableName: DatabasePersisterConfig | string | undefined,
)

Source from the content-addressed store, hash-verified

89const hasValues = (config: any): boolean => isTrue(config) || isArray(config);
90
91const getDefaultedConfig = (
92 configOrStoreTableName: DatabasePersisterConfig | string | undefined,
93): DatabasePersisterConfig =>
94 objMerge(
95 DEFAULT_CONFIG,
96 isString(configOrStoreTableName)
97 ? {[STORE_TABLE_NAME]: configOrStoreTableName}
98 : (configOrStoreTableName ?? {}),
99 );
100
101const getDefaultedTabularConfigMap = (
102 configsObj: IdObj<any>,

Callers 1

getConfigStructuresFunction · 0.85

Calls 2

objMergeFunction · 0.90
isStringFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…