hermes-channel
Advanced tools
Comparing version 0.0.5 to 0.0.6
declare function on(topic: string, callback: (data: any) => void): void; | ||
declare function off(topic: string, callback: any): void; | ||
declare function off(topic: string, callback?: (data: any) => void): void; | ||
declare const hermes: { | ||
@@ -4,0 +4,0 @@ on: typeof on; |
{ | ||
"name": "hermes-channel", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Messaging channel between tabs", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -12,3 +12,3 @@ const callbacks: { | ||
function off(topic: string, callback: any) { | ||
function off(topic: string, callback?: (data: any) => void) { | ||
if (topic in callbacks) { | ||
@@ -15,0 +15,0 @@ if (typeof callback === "function") { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
27507