Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/common/mod.ts>EventContainer

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class EventContainer
import { EventContainer } from "https://deno.land/x/ts_morph@18.0.0/common/mod.ts";

Event container for event subscriptions.

Type Parameters

optional
EventArgType = undefined

Properties

private
getIndex
private
readonly
subscriptions

Methods

fire(arg: EventArgType): void

Fire an event.

subscribe(subscription: EventContainerSubscription<EventArgType>): void

Subscribe to an event being fired.

unsubscribe(subscription: EventContainerSubscription<EventArgType>): void

Unsubscribe to an event being fired.