MCPcopy
hub / github.com/nestjs/nest / validateModuleKeys

Function validateModuleKeys

packages/common/utils/validate-module-keys.util.ts:15–23  ·  view source on GitHub ↗
(keys: string[])

Source from the content-addressed store, hash-verified

13];
14
15export function validateModuleKeys(keys: string[]) {
16 const validateKey = (key: string) => {
17 if (metadataKeys.includes(key)) {
18 return;
19 }
20 throw new Error(INVALID_MODULE_CONFIG_MESSAGE`${key}`);
21 };
22 keys.forEach(validateKey);
23}

Callers 2

ModuleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected