Comparing version 0.2.1 to 0.2.2
@@ -16,3 +16,4 @@ declare const $get: unique symbol; | ||
/** Send an event to all observers. */ | ||
declare function callFluidObservers(target: any, event: FluidEvent): void; | ||
declare function callFluidObservers<E extends FluidEvent>(target: FluidValue<any, E>, event: E): void; | ||
declare function callFluidObservers(target: object, event: FluidEvent): void; | ||
interface GetFluidValue { | ||
@@ -19,0 +20,0 @@ <T, U = never>(target: T | FluidValue<U>): Exclude<T, FluidValue> | U; |
@@ -31,3 +31,2 @@ "use strict"; | ||
exports.callFluidObserver = callFluidObserver; | ||
/** Send an event to all observers. */ | ||
function callFluidObservers(target, event) { | ||
@@ -34,0 +33,0 @@ var observers = target[$observers]; |
@@ -16,3 +16,4 @@ declare const $get: unique symbol; | ||
/** Send an event to all observers. */ | ||
declare function callFluidObservers(target: any, event: FluidEvent): void; | ||
declare function callFluidObservers<E extends FluidEvent>(target: FluidValue<any, E>, event: E): void; | ||
declare function callFluidObservers(target: object, event: FluidEvent): void; | ||
interface GetFluidValue { | ||
@@ -19,0 +20,0 @@ <T, U = never>(target: T | FluidValue<U>): Exclude<T, FluidValue> | U; |
@@ -27,3 +27,2 @@ var $get = Symbol.for('FluidValue.get'); | ||
} | ||
/** Send an event to all observers. */ | ||
function callFluidObservers(target, event) { | ||
@@ -30,0 +29,0 @@ var observers = target[$observers]; |
{ | ||
"name": "fluids", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Glue layer for reactivity", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index", |
@@ -46,2 +46,9 @@ const $get = Symbol.for('FluidValue.get') | ||
/** Send an event to all observers. */ | ||
function callFluidObservers<E extends FluidEvent>( | ||
target: FluidValue<any, E>, | ||
event: E | ||
): void | ||
function callFluidObservers(target: object, event: FluidEvent): void | ||
function callFluidObservers(target: any, event: FluidEvent) { | ||
@@ -48,0 +55,0 @@ let observers: Set<FluidObserver> = target[$observers] |
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
25410
445