Skip to content

Commit

Permalink
feat(types): renaming EmitterOfMany events to simply Emitter.
Browse files Browse the repository at this point in the history
  • Loading branch information
razshare committed Jul 28, 2024
1 parent e37be6c commit 8ea1782
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sveltekit-sse",
"version": "0.13.4",
"version": "0.13.5",
"scripts": {
"dev": "vite dev",
"build": "vite build",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/produce.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib/types.external.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export {}
*/

/**
* @typedef {(eventName:string,data:string)=>import('./types.external').Unsafe<void>} EmitterOfManyEvents
* @typedef {(eventName:string,data:string)=>import('./types.external').Unsafe<void>} Emitter
*/

/**
Expand Down

0 comments on commit 8ea1782

Please sign in to comment.