MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / configFinder

Function configFinder

packages/cli/src/searchConfiguration.ts:34–36  ·  view source on GitHub ↗
(cfg: unknown)

Source from the content-addressed store, hash-verified

32
33 // oxfmt-ignore
34 const configFinder = (cfg: unknown) => {
35 return typeof cfg === 'object' && cfg !== null && ('contextName' in cfg ? cfg.contextName === contextName : contextName === 'default');
36 };
37
38 const isValidConfigFactoryResult = (cfg: unknown) => {
39 return typeof cfg === 'object' && cfg !== null && (!('contextName' in cfg) || cfg.contextName === contextName);

Callers 1

searchConfigurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected