EngineOptions
API / publicodes / EngineOptions
type EngineOptions: object;
Options for the engine constructor
Type declaration
Name | Type | Description | Defined in |
---|---|---|---|
allowOrphanRules ? | boolean | Don’t throw an error if the parent of a rule is not found. This is useful to parse partial rule sets (e.g. optimized ones). Deprecated Use the strict: { parentRule: false } option instead | packages/core/src/engine/index.ts:88 |
getUnitKey ? | getUnitKey | Experimental getUnitKey is a function that allows to normalize the unit in the engine. | packages/core/src/engine/index.ts:108 |
logger ? | Logger | The logger used to log errors and warnings (default to console). | packages/core/src/engine/index.ts:102 |
strict ? | boolean | StrictOptions | Whether the engine should trigger an error when it detects an anomaly, or whether it should simply record it and continue. This option can be set globally (true or false) or for specific rules (StrictOptions). Default true | packages/core/src/engine/index.ts:96 |