c

io.scalajs.nodejs.fs

FSWatcherExtensions

implicit final class FSWatcherExtensions[T <: FSWatcher] extends AnyVal

File System Watcher Extensions

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FSWatcherExtensions
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new FSWatcherExtensions(watcher: T)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def onChange(listener: (String, Any) => Any): T

    Emitted when something changes in a watched directory or file.

    Emitted when something changes in a watched directory or file. See more details in fs.watch().

    The filename argument may not be provided depending on operating system support. If filename is provided, it will be provided as a Buffer if fs.watch() is called with it's encoding option set to 'buffer', otherwise filename will be a string.

    listener

    the event handler

    • event: String - The type of fs change
    • filename: String> | Buffer - The filename that changed (if relevant/available)
    Annotations
    @inline()
    Since

    0.5.8

  8. def onClose(listener: () => Any): T

    Added in Node.js v10.0.0

    Added in Node.js v10.0.0

    Annotations
    @inline()
    See also

    https://nodejs.org/api/fs.html#fs_event_close

  9. def onError(listener: (Error) => Any): T

    Emitted when an error occurs.

    Emitted when an error occurs.

    listener

    the event handler

    Annotations
    @inline()
    Since

    0.5.8

  10. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped