(keys: string[])
| 13 | ]; |
| 14 | |
| 15 | export 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 | } |
no outgoing calls
no test coverage detected