@samatawy/checks
    Preparing search index...

    Interface TolerantCheckOptions

    Options for checks that can accept a more permissive input mode.

    interface TolerantCheckOptions {
        hint?: string | string[];
        warn?: string | string[];
        err?: string | string[];
        code?: ResultCode;
        catalog?: IResultCatalog;
        tolerant?: boolean;
    }

    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.

    tolerant?: boolean

    Allows coercion-friendly behavior where supported by the check.