Comparing version 1.2.22 to 1.3.0
import { Watcher } from './watcher'; | ||
/** | ||
* A dep is an observable that can have multiple | ||
* directives subscribing to it. | ||
*/ | ||
export declare class Dep { | ||
@@ -3,0 +7,0 @@ static target?: Watcher; |
@@ -10,5 +10,13 @@ import { IObject } from 'herb-core-include'; | ||
constructor(value: IObject); | ||
/** | ||
* Walk through all properties and convert them into | ||
* getter/setters. This method should only be called when | ||
* value type is Object. | ||
*/ | ||
walk(obj: IObject): void; | ||
/** | ||
* Observe a list of Array items. | ||
*/ | ||
observeArray(items: any[]): void; | ||
} | ||
//# sourceMappingURL=reactive.d.ts.map |
@@ -31,3 +31,9 @@ import { IFunction } from 'herb-core-include'; | ||
run(): void; | ||
/** | ||
* Depend on all deps collected by this watcher. | ||
*/ | ||
depend(): void; | ||
/** | ||
* Remove self from all dependencies' subscriber list. | ||
*/ | ||
teardown(): void; | ||
@@ -34,0 +40,0 @@ } |
{ | ||
"name": "herbx", | ||
"version": "1.2.22", | ||
"version": "1.3.0", | ||
"main": "lib/index.js", | ||
@@ -18,5 +18,5 @@ "files": [ | ||
"dependencies": { | ||
"herb-core-include": "^1.1.2" | ||
"herb-core-include": "^1.2.0" | ||
}, | ||
"gitHead": "6d10229c7bfabc036cc47a18e6881327f79b3a35" | ||
"gitHead": "9b7163c4c061e1453bf55b413696727a2bab7f8c" | ||
} |
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
132994
247
Updatedherb-core-include@^1.2.0