FSWatcher.once - Node documentation
method FSWatcher.once

Usage in Deno

import { type FSWatcher } from "node:fs";
FSWatcher.once(
event: string,
listener: (...args: any[]) => void,
): this

Parameters

event: string
listener: (...args: any[]) => void

Return Type

this
FSWatcher.once(
event: "change",
listener: (
eventType: string,
filename: string | Buffer,
) => void
,
): this

Parameters

event: "change"
listener: (
eventType: string,
filename: string | Buffer,
) => void

Return Type

this
FSWatcher.once(
event: "close",
listener: () => void,
): this

Parameters

event: "close"
listener: () => void

Return Type

this
FSWatcher.once(
event: "error",
listener: (error: Error) => void,
): this

Parameters

event: "error"
listener: (error: Error) => void

Return Type

this