Skip to main content
Module

x/dtils/fs.ts>WatcherParams

The best unofficial library of utilities for Deno applications
Go to Latest
interface WatcherParams
import { type WatcherParams } from "https://deno.land/x/dtils@2.6.0/fs.ts";

Properties

optional
signal: AbortSignal

A signal by which the watcher can be aborted

optional
interval: number

The interval (in milliseconds) at which to poll files. Defaults to 1000

Methods

onUpdate(file: string): unknown

Called when a file is updated