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

Function isValidConfigFactoryResult

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

Source from the content-addressed store, hash-verified

36 };
37
38 const isValidConfigFactoryResult = (cfg: unknown) => {
39 return typeof cfg === 'object' && cfg !== null && (!('contextName' in cfg) || cfg.contextName === contextName);
40 };
41
42 if (Array.isArray(tmp)) {
43 const tmpFirstIndex = tmp.findIndex(configFinder);

Callers 1

searchConfigurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected