()
| 5 | let explicitlyDefinedModels: Set<string> | null = null |
| 6 | |
| 7 | function getExplicitlyDefinedModels(): Set<string> { |
| 8 | if (explicitlyDefinedModels === null) { |
| 9 | // NOTE: Inline require() avoids circular dependency - old-constants imports this |
| 10 | // module, so a top-level import would create a circular reference |
| 11 | const { models } = require('../old-constants') |
| 12 | explicitlyDefinedModels = new Set(Object.values(models) as string[]) |
| 13 | } |
| 14 | return explicitlyDefinedModels |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Check if a model is explicitly defined in the models constant object. |
no outgoing calls
no test coverage detected