Interface for components that can both emit and watch events. Combines the capabilities of both IWatcher and IEmitter interfaces.

interface

  IEmitterAndWatcher

### Hierarchy

- IWatcher
- IEmitter
  - IEmitterAndWatcher

## Index

### Methods

- emitEvent
- subscribeShared
- subscribeUser
- unsubscribe

## Methods

### emitEvent

- emitEvent(eventName: string): void

- Inherited from IEmitter.emitEvent

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

  #### Parameters

  - ##### eventName: string

  #### Returns void

### subscribeShared

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

- Inherited from IWatcher.subscribeShared

  - 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

- Inherited from IWatcher.subscribeUser

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

  #### Parameters

  - ##### eventName: string

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

  #### Returns IEventDisposable

### unsubscribe

- unsubscribe(eventName: string): void

- Inherited from IWatcher.unsubscribe

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

  #### Parameters

  - ##### eventName: string

  #### Returns void

Generated using TypeDoc