Host that has watch functionality used in --watch mode
Host that has watch functionality used in --watch mode
(clear-timeout watch-host timeout-id)If provided, will be used to reset existing delayed compilation
Parameters:
timeout-id: anyReturns: void
If provided, will be used to reset existing delayed compilation **Parameters:** - `timeout-id`: `any` **Returns:** `void`
(on-watch-status-change watch-host diagnostic new-line options)(on-watch-status-change watch-host diagnostic new-line options error-count)If provided, called with Diagnostic message that informs about change in watch status
Parameters:
diagnostic: Diagnosticnew-line: stringoptions: CompilerOptionserror-count: number | undefinedReturns: void
If provided, called with Diagnostic message that informs about change in watch status **Parameters:** - `diagnostic`: `Diagnostic` - `new-line`: `string` - `options`: `CompilerOptions` - `error-count`: `number | undefined` **Returns:** `void`
(set-timeout watch-host callback ms & args)If provided, will be used to set delayed compilation, so that multiple changes in short span are compiled together
Parameters:
callback: (...args: any[]) => voidms: numberargs: any[]Returns: 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` - `ms`: `number` - `args`: `any[]` **Returns:** `any`
(watch-directory watch-host path callback)(watch-directory watch-host path callback recursive?)(watch-directory watch-host path callback recursive? options)Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added
Parameters:
path: stringcallback: DirectoryWatcherCallbackrecursive?: boolean | undefinedoptions: WatchOptions | undefinedReturns: FileWatcher
Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added **Parameters:** - `path`: `string` - `callback`: `DirectoryWatcherCallback` - `recursive?`: `boolean | undefined` - `options`: `WatchOptions | undefined` **Returns:** `FileWatcher`
(watch-file watch-host path callback)(watch-file watch-host path callback polling-interval)(watch-file watch-host path callback polling-interval options)Used to watch changes in source files, missing files needed to update the program or config file
Parameters:
path: stringcallback: FileWatcherCallbackpolling-interval: number | undefinedoptions: WatchOptions | undefinedReturns: FileWatcher
Used to watch changes in source files, missing files needed to update the program or config file **Parameters:** - `path`: `string` - `callback`: `FileWatcherCallback` - `polling-interval`: `number | undefined` - `options`: `WatchOptions | undefined` **Returns:** `FileWatcher`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |