-
-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: strongly type event emitter methods
Adds strong types to the event emitter interface such that `on` and similar methods can infer parameters. For example: ```ts // these are strongly typed and will give hints in editors etc watcher.on('ready', () => {}); watcher.on('error', (err) => {}); // this will fail watcher.on('nonsense', () => {}); ``` Fixes #1372
- Loading branch information
Showing
1 changed file
with
27 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters