Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WatchHost

Host that has watch functionality used in --watch mode

Hierarchy

Index

Methods

Optional clearTimeout

  • clearTimeout(timeoutId: any): void
  • If provided, will be used to reset existing delayed compilation

    Parameters

    • timeoutId: any

    Returns void

Optional onWatchStatusChange

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

    Parameters

    Returns void

Optional setTimeout

  • setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): any
  • If provided, will be used to set delayed compilation, so that multiple changes in short span are compiled together

    Parameters

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

          • Rest ...args: any[]

          Returns void

    • ms: number
    • Rest ...args: any[]

    Returns any

watchDirectory

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

    Parameters

    Returns FileWatcher

watchFile

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

    Parameters

    Returns FileWatcher

Generated using TypeDoc