https://github.com/fr0stbyter/typed-event-emitter
https://github.com/fr0stbyter/typed-event-emitter
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fr0stbyter/typed-event-emitter
- Owner: Fr0stbyteR
- Created: 2021-06-08T07:34:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-23T14:19:37.000Z (over 4 years ago)
- Last Synced: 2025-09-22T06:59:18.340Z (9 months ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Usage
```TypeScript
import TypedEventEmitter from "typed-event-emitter";
class MyClass extends TypedEventEmitter<{ init: never; ready: boolean }> {
constructor() {
super();
this.emit("init");
this.emit("ready", true);
}
}
```