Removed read and write functions from subscribable

read/write defined only in observable and computed
This commit is contained in:
Igor Oleinikov
2013-10-29 17:02:54 +04:00
parent 35f2f6c2ee
commit 87d312bed7
+7 -3
View File
@@ -52,10 +52,8 @@ interface KnockoutSubscription {
}
interface KnockoutSubscribable<T> extends KnockoutSubscribableFunctions<T> {
(): T;
(value: T): void;
subscribe(callback: (newValue: T) => void, target?: any, event?: string): KnockoutSubscription;
subscribe<TEvent>(callback: (newValue: TEvent) => void, target: any, event: string): KnockoutSubscription;
extend(requestedExtenders: { [key: string]: any; }): KnockoutSubscribable<T>;
getSubscriptionsCount(): number;
}
@@ -70,6 +68,9 @@ interface KnockoutComputedStatic {
}
interface KnockoutComputed<T> extends KnockoutSubscribable<T>, KnockoutComputedFunctions<T> {
(): T;
(value: T): void;
peek(): T;
dispose(): void;
isActive(): boolean;
@@ -92,6 +93,9 @@ interface KnockoutObservableStatic {
}
interface KnockoutObservable<T> extends KnockoutSubscribable<T>, KnockoutObservableFunctions<T> {
(): T;
(value: T): void;
peek(): T;
valueHasMutated(): void;
valueWillMutate(): void;