(engineOptions: IPublicTypeEngineOptions, defaultValue: boolean)
| 172 | }; |
| 173 | |
| 174 | const getStrictModeValue = (engineOptions: IPublicTypeEngineOptions, defaultValue: boolean): boolean => { |
| 175 | if (!engineOptions || !isPlainObject(engineOptions)) { |
| 176 | return defaultValue; |
| 177 | } |
| 178 | if (engineOptions.enableStrictPluginMode === undefined |
| 179 | || engineOptions.enableStrictPluginMode === null) { |
| 180 | return defaultValue; |
| 181 | } |
| 182 | return engineOptions.enableStrictPluginMode; |
| 183 | }; |
| 184 | |
| 185 | export interface IEngineConfig extends IPublicModelEngineConfig { |
| 186 |
no test coverage detected
searching dependent graphs…