Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CustomStatWatcher<P>

Type parameters

Hierarchy

  • EventEmitter
    • CustomStatWatcher

Implements

  • EventEmitter<this> & object

Constructors

Private constructor

Properties

bigint

bigint: boolean

Private changeListeners

changeListeners: Map<WatchFileCallback, Timeout> = new Map()

fakeFs

fakeFs: FakeFS<P>

Private lastStats

lastStats: Stats | BigIntStats

path

path: P

Private startTimeout

startTimeout: Timeout | null = null

Private status

status: Status = Status.Ready

Static defaultMaxListeners

defaultMaxListeners: number

Methods

addListener

  • addListener(event: string | symbol, listener: function): this

emit

  • emit(event: string | symbol, ...args: any[]): boolean

eventNames

  • eventNames(): Array<string | symbol>

getMaxListeners

  • getMaxListeners(): number

hasChangeListeners

  • hasChangeListeners(): boolean

listenerCount

  • listenerCount(type: string | symbol): number

listeners

  • listeners(event: string | symbol): Function[]

makeInterval

off

  • off(event: string | symbol, listener: function): this

on

  • on(event: string | symbol, listener: function): this

once

  • once(event: string | symbol, listener: function): this

prependListener

  • prependListener(event: string | symbol, listener: function): this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this

rawListeners

  • rawListeners(event: string | symbol): Function[]

ref

  • ref(): this

registerChangeListener

removeAllListeners

  • removeAllListeners(event?: string | symbol): this

removeListener

  • removeListener(event: string | symbol, listener: function): this

setMaxListeners

  • setMaxListeners(n: number): this

start

  • start(): void

stat

  • stat(): Stats | BigIntStats

stop

  • stop(): void

unref

  • unref(): this

unregisterAllChangeListeners

  • unregisterAllChangeListeners(): void

unregisterChangeListener

Static create

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number

Generated using TypeDoc