From 8ea178267c19e35b418d0136581cb658e9d47eb5 Mon Sep 17 00:00:00 2001 From: Razvan Tanase Date: Sun, 28 Jul 2024 13:27:28 +0200 Subject: [PATCH] feat(types): renaming `EmitterOfMany` events to simply `Emitter`. --- package.json | 2 +- src/lib/produce.js | 2 +- src/lib/types.external.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e9aae88..c55758d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sveltekit-sse", - "version": "0.13.4", + "version": "0.13.5", "scripts": { "dev": "vite dev", "build": "vite build", diff --git a/src/lib/produce.js b/src/lib/produce.js index c7b533e..ebd9a26 100644 --- a/src/lib/produce.js +++ b/src/lib/produce.js @@ -5,7 +5,7 @@ import { error } from './error' /** * * @param {import('./types.internal').CreateEmitterPayload} payload - * @returns {import('./types.external').EmitterOfManyEvents} + * @returns {import('./types.external').Emitter} */ function createEmitter({ controller, context }) { let id = 1 diff --git a/src/lib/types.external.js b/src/lib/types.external.js index 676411a..bdfafe5 100644 --- a/src/lib/types.external.js +++ b/src/lib/types.external.js @@ -51,7 +51,7 @@ export {} */ /** - * @typedef {(eventName:string,data:string)=>import('./types.external').Unsafe} EmitterOfManyEvents + * @typedef {(eventName:string,data:string)=>import('./types.external').Unsafe} Emitter */ /**