@schirkan/reactron-interfaces
Advanced tools
Comparing version 0.10.0-alpha.9 to 0.10.0-alpha.10
@@ -1,12 +0,11 @@ | ||
export interface IPubSubEvgent { | ||
export interface IPubSubEvent { | ||
name: string; | ||
resolve: (data: any) => void; | ||
reject: (reason: any) => void; | ||
} | ||
export declare type PubSubListener = (event: IPubSubEvent, ...args: any[]) => void; | ||
export interface IPubSub { | ||
subscribe(eventName: string, listener: (event: IPubSubEvgent, ...args: any[]) => void): void; | ||
once(eventName: string, listener: (event: IPubSubEvgent, ...args: any[]) => void): void; | ||
unsubscribe(eventName: string, listener: (event: IPubSubEvgent, ...args: any[]) => void): void; | ||
publish(eventName: string, ...args: any[]): Promise<any>; | ||
subscribe(eventName: string, listener: PubSubListener): void; | ||
once(eventName: string, listener: PubSubListener): void; | ||
unsubscribe(eventName: string, listener: PubSubListener): void; | ||
publish(eventName: string, ...args: any[]): void; | ||
clearAllSubscriptions(): void; | ||
} |
{ | ||
"name": "@schirkan/reactron-interfaces", | ||
"version": "0.10.0-alpha.9", | ||
"version": "0.10.0-alpha.10", | ||
"description": "interfaces for reactron modules", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,13 +0,13 @@ | ||
export interface IPubSubEvgent { | ||
export interface IPubSubEvent { | ||
name: string; | ||
resolve: (data: any) => void; | ||
reject: (reason: any) => void; | ||
} | ||
export type PubSubListener = (event: IPubSubEvent, ...args: any[]) => void; | ||
export interface IPubSub { | ||
subscribe(eventName: string, listener: (event: IPubSubEvgent, ...args: any[]) => void): void; | ||
once(eventName: string, listener: (event: IPubSubEvgent, ...args: any[]) => void): void; | ||
unsubscribe(eventName: string, listener: (event: IPubSubEvgent, ...args: any[]) => void): void; | ||
publish(eventName: string, ...args: any[]): Promise<any>; | ||
subscribe(eventName: string, listener: PubSubListener): void; | ||
once(eventName: string, listener: PubSubListener): void; | ||
unsubscribe(eventName: string, listener: PubSubListener): void; | ||
publish(eventName: string, ...args: any[]): void; | ||
clearAllSubscriptions(): void; | ||
} |
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
93133
2248