@hazae41/plume
Advanced tools
Comparing version 2.4.5 to 3.0.1
import * as index from './mods/index.js'; | ||
export { index as Plume }; | ||
export { Cancel } from './mods/cancel.js'; | ||
export { CloseEvents, rejectOnClose } from './mods/closed.js'; | ||
@@ -4,0 +5,0 @@ export { ErrorEvents, rejectOnError } from './mods/errored.js'; |
@@ -0,1 +1,2 @@ | ||
export { Cancel } from './cancel.js'; | ||
export { CloseEvents, rejectOnClose } from './closed.js'; | ||
@@ -2,0 +3,0 @@ export { ErrorEvents, rejectOnError } from './errored.js'; |
@@ -6,2 +6,3 @@ import { Disposer } from '@hazae41/disposer'; | ||
import { Voidable } from '../libs/voidable/index.js'; | ||
import { Cancel } from './cancel.js'; | ||
@@ -14,4 +15,4 @@ /** | ||
type SuperEventMap = Record<string, SuperEventDescriptor>; | ||
type SuperEventListener<T extends SuperEventDescriptor> = (...params: Parameters2<T>) => Awaitable<Voidable<Option<ReturnType<T>>>>; | ||
type SuperEventWaiter<T extends SuperEventDescriptor, R> = (future: Future<R>, ...params: Parameters2<T>) => Awaitable<Voidable<Option<ReturnType<T>>>>; | ||
type SuperEventListener<T extends SuperEventDescriptor> = (...params: Parameters2<T>) => Awaitable<Voidable<Cancel<ReturnType<T>>>>; | ||
type SuperEventWaiter<T extends SuperEventDescriptor, R> = (future: Future<R>, ...params: Parameters2<T>) => Awaitable<Voidable<Cancel<ReturnType<T>>>>; | ||
interface InternalSuperEventListenerOptions extends AddEventListenerOptions { | ||
@@ -18,0 +19,0 @@ off: () => void; |
{ | ||
"type": "module", | ||
"name": "@hazae41/plume", | ||
"version": "2.4.5", | ||
"version": "3.0.1", | ||
"description": "Typed async events with sequenced and parallel dispatching", | ||
@@ -25,3 +25,3 @@ "homepage": "https://github.com/hazae41/plume", | ||
"peerDependencies": { | ||
"@hazae41/option": "^1.1" | ||
"@hazae41/option": "^1.1.4" | ||
}, | ||
@@ -38,3 +38,3 @@ "dependencies": { | ||
"@rollup/plugin-typescript": "^11.1.6", | ||
"@types/node": "^22.5.1", | ||
"@types/node": "^22.5.2", | ||
"rollup": "^4.21.2", | ||
@@ -41,0 +41,0 @@ "rollup-plugin-dts": "^6.1.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
103521
43
611