Skip to content

Commit

Permalink
fix: make thisArg optional
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Sep 11, 2019
1 parent 1304b22 commit 360fe21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Only available to deriving classes. Trigger all listeners of a particular event.
```ts
emit(
event: string,
thisArg: any,
thisArg?: any,
...args: any
): Promise<any>
```
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default abstract class Houk {
*/
protected async emit(
event: string,
thisArg: any,
thisArg?: any,
...args: any
): Promise<any> {
const listeners = this.getListeners(event);
Expand Down

0 comments on commit 360fe21

Please sign in to comment.