MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / getStrictModeValue

Function getStrictModeValue

packages/editor-core/src/config.ts:174–183  ·  view source on GitHub ↗
(engineOptions: IPublicTypeEngineOptions, defaultValue: boolean)

Source from the content-addressed store, hash-verified

172};
173
174const 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
185export interface IEngineConfig extends IPublicModelEngineConfig {
186

Callers 1

setEngineOptionsMethod · 0.85

Calls 1

isPlainObjectFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…