nemo-observable-util
Advanced tools
Comparing version 5.3.15 to 5.4.0
{ | ||
"name": "nemo-observable-util", | ||
"version": "5.3.15", | ||
"version": "5.4.0", | ||
"description": "Simple transparent reactivity with 100% language coverage. Made with ES6 Proxies.", | ||
@@ -31,3 +31,3 @@ "main": "dist/cjs.es5.js", | ||
"type": "git", | ||
"url": "git@github.com:yunfengdie/observer-util.git" | ||
"url": "git@code.alipay.com:yunfengdie/observer-util.git" | ||
}, | ||
@@ -34,0 +34,0 @@ "bugs": { |
@@ -28,2 +28,7 @@ declare module 'nemo-observable-util' { | ||
interface ExecSyncOptions { | ||
before: Function; | ||
after: Function; | ||
actionName?: string; | ||
} | ||
function observe<Reaction extends Function>( | ||
@@ -68,2 +73,3 @@ func: Reaction, | ||
function runInAction<T extends (...args: any) => any>(f: T): ReturnType<T>; | ||
function execSyncAndRunObserverImmediately<T extends (...args: any) => any>(f: T, opts:ExecSyncOptions): ReturnType<T>; | ||
const actionManager: any; | ||
@@ -70,0 +76,0 @@ function decoratorFactory<T extends Function>( |
134012
3118