Skip to content

Commit

Permalink
docs: fix example in README (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbth authored Aug 6, 2024
1 parent 56e004c commit c0c3d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ npm install strict-event-emitter
```ts
import { Emitter } from 'strict-event-emitter'

// 1. Define an interface that describes your events.
// 1. Define a type that describes your events.
// Set event names as the keys, and their expected payloads as values.
interface Events {
type Events = {
connect: [id: string]
disconnect: [id: string]
}
Expand Down

0 comments on commit c0c3d5a

Please sign in to comment.