Added the serializer configuration option

It's not specified in the documentation but it exists and it's definitely useful.
This commit is contained in:
Alex Paven 2015-01-20 10:32:04 +00:00
parent f99f5be663
commit 34c247f4c5

View File

@ -9,6 +9,7 @@ interface KnockoutPostBox {
subscribe<T>(topic: string, handler: (value: T) => void , target?: any): KnockoutSubscription;
publish<T>(topic: string, value?: T): void;
defaultComparer<T>(newValue: T, oldValue: T): boolean;
serializer: (object: any) => string;
}
interface KnockoutObservable<T> {
@ -29,4 +30,4 @@ interface KnockoutObservableArray<T> {
interface KnockoutStatic {
postbox: KnockoutPostBox;
}
}