Skip to content

Commit

Permalink
Event: Fix typos in readme
Browse files Browse the repository at this point in the history
Signed-off-by: Fadion Dashi <jonidashi@gmail.com>
  • Loading branch information
fadion committed Mar 20, 2018
1 parent 7b21a7a commit a2b0f7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/event/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A thin wrapper for Node's native [events](https://nodejs.org/api/events.html). M
As you'd expect, events can be listened with `on` and emmited with `emit`.

```js
const { Event } = required('@sapphirejs/event')
const { Event } = require('@sapphirejs/event')

const event = new Event()
event.on('some.event', () => {
Expand Down Expand Up @@ -51,7 +51,7 @@ event.emit('user.registered')
The `BaseEvent` class enforces the usage of the `listen` method and has the capabilities to be extended by the framework, like injecting a context object as argument. It is completely optional to use, but if you decide on it, this is how it's used:

```js
const { Event, BaseEvent } = required('@sapphirejs/event')
const { Event, BaseEvent } = require('@sapphirejs/event')

class SendWelcomeEmail extends BaseEvent {
listen(userId) {
Expand Down

0 comments on commit a2b0f7b

Please sign in to comment.