KC's Workspace
    Preparing search index...
    interface IWatchOptions {
        encoding?:
            | "base64"
            | "binary"
            | "ascii"
            | "utf8"
            | "utf-8"
            | "utf16le"
            | "utf-16le"
            | "ucs2"
            | "ucs-2"
            | "base64url"
            | "latin1"
            | "hex"
            | "buffer";
        ignore?: TWatchIgnorePattern
        | TWatchIgnorePattern[];
        maxQueue?: number;
        overflow?: "error" | "ignore" | "throw";
        persistent?: boolean;
        recursive?: boolean;
        signal?: AbortSignal;
        throwIfNoEntry?: boolean;
    }

    Hierarchy (View Summary)

    Index
    encoding?:
        | "base64"
        | "binary"
        | "ascii"
        | "utf8"
        | "utf-8"
        | "utf16le"
        | "utf-16le"
        | "ucs2"
        | "ucs-2"
        | "base64url"
        | "latin1"
        | "hex"
        | "buffer"

    Pattern(s) for event filenames to ignore. Strings are glob patterns, a RegExp is tested against the filename, and a function receives the filename and returns true to ignore it. An array may mix all three.

    undefined
    
    maxQueue?: number

    Specifies the number of events to queue between iterations of the AsyncIterator.

    2048
    
    overflow?: "error" | "ignore" | "throw"

    Behavior when more events are queued than maxQueue allows. 'ignore' means overflow events are dropped and a warning is emitted, while 'error' means the iterator throws an ERR_FS_WATCH_QUEUE_OVERFLOW error. 'throw' is accepted as an alias of 'error' (the Node.js docs use 'throw' while its implementation validates 'error').

    'ignore'
    
    persistent?: boolean

    Indicates whether the process should continue to run as long as files are being watched. Default: true.

    recursive?: boolean

    Indicates whether all subdirectories should be watched, or only the current directory. This applies when a directory is specified, and only on supported platforms (See caveats). Default: false.

    signal?: AbortSignal

    Allows closing the watcher with an AbortSignal.

    throwIfNoEntry?: boolean

    Whether to throw if the watched path does not exist. When false, a watcher that was never started is returned instead. Default: true.