@samatawy/checks
    Preparing search index...

    Interface ArrayContainsOptions

    Options for array contains-style matching.

    interface ArrayContainsOptions {
        hint?: string | string[];
        warn?: string | string[];
        err?: string | string[];
        code?: ResultCode;
        catalog?: IResultCatalog;
        minCount?: number;
        maxCount?: number;
        minErr?: string | string[];
        maxErr?: string | string[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    hint?: string | string[]

    Custom hint message or messages to add when the check records a hint.

    warn?: string | string[]

    Custom warning message or messages to add when the check records a warning.

    err?: string | string[]

    Custom error message or messages to add when the check records an error.

    code?: ResultCode

    Optional code attached to the produced result.

    catalog?: IResultCatalog

    Catalog used to resolve result codes into localized messages.

    minCount?: number

    Minimum number of array items that must satisfy the nested item checks. Defaults to 1.

    maxCount?: number

    Maximum number of array items that may satisfy the nested item checks.

    minErr?: string | string[]

    Optional custom error used when too few items match.

    maxErr?: string | string[]

    Optional custom error used when too many items match.