@servicenow/sdk - v4.4.1
    Preparing search index...

    Host that has watch functionality used in --watch mode

    interface WatchHost {
        clearTimeout?(timeoutId: any): void;
        onWatchStatusChange?(
            diagnostic: tsc.Diagnostic,
            newLine: string,
            options: tsc.CompilerOptions,
            errorCount?: number,
        ): void;
        setTimeout?(
            callback: (...args: any[]) => void,
            ms: number,
            ...args: any[],
        ): any;
        watchDirectory(
            path: string,
            callback: DirectoryWatcherCallback,
            recursive?: boolean,
            options?: tsc.WatchOptions,
        ): FileWatcher;
        watchFile(
            path: string,
            callback: FileWatcherCallback,
            pollingInterval?: number,
            options?: tsc.WatchOptions,
        ): FileWatcher;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • If provided, will be used to reset existing delayed compilation

      Parameters

      • timeoutId: any

      Returns void

    • If provided, called with Diagnostic message that informs about change in watch status

      Parameters

      Returns void

    • If provided, will be used to set delayed compilation, so that multiple changes in short span are compiled together

      Parameters

      • callback: (...args: any[]) => void
      • ms: number
      • ...args: any[]

      Returns any

    • Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added

      Parameters

      Returns FileWatcher

    • Used to watch changes in source files, missing files needed to update the program or config file

      Parameters

      Returns FileWatcher