Skip to main content

addListener

method FSWatcher.addListener
Jump to headingFSWatcher.addListener(
event: string,
listener: (...args: any[]) => void,
): this

events.EventEmitter

  1. change
  2. close
  3. error

Parameters Jump to heading

Jump to headingevent: string
Jump to headinglistener: (...args: any[]) => void

Return Type Jump to heading

this
Jump to headingFSWatcher.addListener(
event: "change",
listener: (
eventType: string,
filename: string | Buffer,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "change"
Jump to headinglistener: (
eventType: string,
filename: string | Buffer,
) => void

Return Type Jump to heading

this
Jump to headingFSWatcher.addListener(
event: "close",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "close"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingFSWatcher.addListener(
event: "error",
listener: (error: Error) => void,
): this

Parameters Jump to heading

Jump to headingevent: "error"
Jump to headinglistener: (error: Error) => void

Return Type Jump to heading

this
Back to top