Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/mod.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/mod.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