From c0c3d5a1f942da9e1fa16f0d36565a75839dae78 Mon Sep 17 00:00:00 2001 From: Jack <33615628+jwbth@users.noreply.github.com> Date: Tue, 6 Aug 2024 13:37:48 +0400 Subject: [PATCH] docs: fix example in README (#18) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c972baa..0025046 100644 --- a/README.md +++ b/README.md @@ -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] }