Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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