Interface GlobalConfig

Global config object.

interface GlobalConfig {
    allowUndefinedArrayElements: boolean;
    modelAutoTypeChecking: ModelAutoTypeCheckingMode;
    showDuplicateModelNameWarnings: boolean;
    modelIdGenerator(): string;
}

Properties

allowUndefinedArrayElements: boolean

Allow array elements to be undefined.

modelAutoTypeChecking: ModelAutoTypeCheckingMode

Model auto type-checking mode.

showDuplicateModelNameWarnings: boolean

Enables/disables warnings related to duplicated model names (defaults to true). Usually set to false in test environments (e.g. jest).

Methods

  • ID generator function for model ids.

    Returns string