Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/lume/core/watcher.ts>default

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class default
implements Watcher
import { default } from "https://deno.land/x/lume@v1.19.3/core/watcher.ts";

Constructors

new
default(options: Options)

Properties

events: Events<WatchEvent>
options: Options

Methods

addEventListener(
type: WatchEventType,
listener: EventListener<WatchEvent>,
options?: EventOptions,
)

Add a listener to an event

dispatchEvent(event: WatchEvent)

Dispatch an event

Start the file watcher