@wixc3/patterns
Advanced tools
Comparing version 11.2.0 to 11.3.0
@@ -38,3 +38,3 @@ export type Listener<T> = (data: T) => void; | ||
*/ | ||
subscribe: (handler: Listener<T>) => () => void; | ||
subscribe: (handler: Listener<T>) => void; | ||
/** | ||
@@ -41,0 +41,0 @@ * Unsubscribe an existing callback |
@@ -44,3 +44,2 @@ "use strict"; | ||
this.add(handler); | ||
return () => this.unsubscribe(handler); | ||
}; | ||
@@ -47,0 +46,0 @@ /** |
@@ -38,3 +38,3 @@ export type Listener<T> = (data: T) => void; | ||
*/ | ||
subscribe: (handler: Listener<T>) => () => void; | ||
subscribe: (handler: Listener<T>) => void; | ||
/** | ||
@@ -41,0 +41,0 @@ * Unsubscribe an existing callback |
@@ -41,3 +41,2 @@ /** | ||
this.add(handler); | ||
return () => this.unsubscribe(handler); | ||
}; | ||
@@ -44,0 +43,0 @@ /** |
{ | ||
"name": "@wixc3/patterns", | ||
"version": "11.2.0", | ||
"version": "11.3.0", | ||
"description": "A utility for saving objects to be disposed", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -41,3 +41,2 @@ export type Listener<T> = (data: T) => void; | ||
this.add(handler); | ||
return () => this.unsubscribe(handler); | ||
}; | ||
@@ -44,0 +43,0 @@ /** |
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
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
165041
3049