@laserware/stasis
    Preparing search index...

    Interface ImmutableStateInvariantMiddlewareOptions

    Options for createImmutableStateInvariantMiddleware().

    interface ImmutableStateInvariantMiddlewareOptions {
        ignoredPaths?: IgnorePaths;
        isImmutable?: IsImmutableFunc;
        warnAfter?: number;
    }
    Index

    Properties

    ignoredPaths?: IgnorePaths

    An array of dot-separated path strings that match named nodes from the root state to ignore when checking for immutability. Defaults to undefined

    isImmutable?: IsImmutableFunc

    Callback function to check if a value is considered to be immutable. This function is applied recursively to every value contained in the state. The default implementation will return true for primitive types (like numbers, strings, booleans, null and undefined).

    warnAfter?: number

    Print a warning if checks take longer than N ms. Default: 32ms