Interface for components that can subscribe to and unsubscribe from events.

interface

  IWatcher

### Hierarchy

- IWatcher
  - IEmitterAndWatcher

## Index

### Methods

- subscribeShared
- subscribeUser
- unsubscribe

## Methods

### subscribeShared

- subscribeShared(eventName: string, callbacks: EventCallback[] | EventCallback): IEventDisposable

- - Defined in @zowe/imperative/src/events/src/doc/IEventInstanceTypes.ts:20

  #### Parameters

  - ##### eventName: string

  - ##### callbacks: EventCallback[] | EventCallback

  #### Returns IEventDisposable

### subscribeUser

- subscribeUser(eventName: string, callbacks: EventCallback[] | EventCallback): IEventDisposable

- - Defined in @zowe/imperative/src/events/src/doc/IEventInstanceTypes.ts:21

  #### Parameters

  - ##### eventName: string

  - ##### callbacks: EventCallback[] | EventCallback

  #### Returns IEventDisposable

### unsubscribe

- unsubscribe(eventName: string): void

- - Defined in @zowe/imperative/src/events/src/doc/IEventInstanceTypes.ts:22

  #### Parameters

  - ##### eventName: string

  #### Returns void

Generated using TypeDoc