value-enhancer
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -7,3 +7,3 @@ import type { SideEffectManager } from "side-effect-manager"; | ||
export declare type CreateVal = <TValue = any, TMeta = any>(value: TValue, compare?: ValCompare<TValue>) => Val<TValue, TMeta>; | ||
export declare function createSideEffectBinder(sideEffect: SideEffectManager): { | ||
export declare type ValSideEffectBinder = { | ||
bindSideEffect: BindSideEffect; | ||
@@ -13,1 +13,2 @@ combine: Combine; | ||
}; | ||
export declare function createSideEffectBinder(sideEffect: SideEffectManager): ValSideEffectBinder; |
{ | ||
"name": "value-enhancer", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "A tiny library to enhance value with reactive wrapper.", |
@@ -14,7 +14,11 @@ import type { SideEffectManager } from "side-effect-manager"; | ||
export function createSideEffectBinder(sideEffect: SideEffectManager): { | ||
export type ValSideEffectBinder = { | ||
bindSideEffect: BindSideEffect; | ||
combine: Combine; | ||
createVal: CreateVal; | ||
} { | ||
}; | ||
export function createSideEffectBinder( | ||
sideEffect: SideEffectManager | ||
): ValSideEffectBinder { | ||
const bindSideEffect: BindSideEffect = val => { | ||
@@ -21,0 +25,0 @@ const disposerID = sideEffect.addDisposer(() => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
44105
397