Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method WatchService.prototype.addEventListener
import { WatchService } from "https://deno.land/x/frugal@0.5.0/packages/core/watch/WatchService.ts";

Listen to messages from the parent process (as json piped in stdin)

Type Parameters

EVENT extends EventNames<EventMap<IN_MESSAGE>>

Parameters

event: EVENT
listener: Listener<EventMap<IN_MESSAGE>[EVENT]>
optional
config: { once?: boolean; } = [UNSUPPORTED]

Returns

() => void