ts-event-bus
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -6,3 +6,4 @@ import { Slot } from './Slot'; | ||
} | ||
export declare function combineEvents<C1 extends EventDeclaration, C2 extends EventDeclaration, C3 extends EventDeclaration, C4 extends EventDeclaration, C5 extends EventDeclaration, C6 extends EventDeclaration, C7 extends EventDeclaration, C8 extends EventDeclaration, C9 extends EventDeclaration, C10 extends EventDeclaration, C11 extends EventDeclaration, C12 extends EventDeclaration, C13 extends EventDeclaration, C14 extends EventDeclaration, C15 extends EventDeclaration, C16 extends EventDeclaration, C17 extends EventDeclaration, C18 extends EventDeclaration, C19 extends EventDeclaration, C20 extends EventDeclaration, C21 extends EventDeclaration, C22 extends EventDeclaration, C23 extends EventDeclaration, C24 extends EventDeclaration>(_c1: C1, _c2: C2, _c3?: C3, _c4?: C4, _c5?: C5, _c6?: C6, _c7?: C7, _c8?: C8, _c9?: C9, _c10?: C10, _c11?: C11, _c12?: C12, _c13?: C13, _c14?: C14, _c15?: C15, _c16?: C16, _c17?: C17, _c18?: C18, _c19?: C19, _c20?: C20, _c21?: C21, _c22?: C22, _c23?: C23, _c24?: C24): C1 & C2 & C3 & C4 & C5 & C6 & C7 & C8 & C9 & C10 & C11 & C12 & C13 & C14 & C15 & C16 & C17 & C18 & C19 & C20 & C21 & C22 & C23 & C24; | ||
declare type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never; | ||
export declare function combineEvents<Events extends EventDeclaration[]>(...args: Events): UnionToIntersection<Events[number]>; | ||
export declare function createEventBus<C extends EventDeclaration>(args: { | ||
@@ -12,2 +13,3 @@ events: C; | ||
}): C; | ||
export {}; | ||
//# sourceMappingURL=Events.d.ts.map |
@@ -13,4 +13,3 @@ "use strict"; | ||
function combineEvents(_c1, _c2, _c3, _c4, _c5, _c6, _c7, _c8, _c9, _c10, _c11, _c12, _c13, _c14, _c15, _c16, _c17, _c18, _c19, _c20, _c21, _c22, _c23, _c24) { | ||
const args = Array.from(arguments); | ||
function combineEvents(...args) { | ||
const keys = args.reduce((acc, arg) => { | ||
@@ -17,0 +16,0 @@ acc.push.apply(acc, Object.keys(arg)); |
{ | ||
"name": "ts-event-bus", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Distributed messaging in Typescript", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
70632
1143