From 34c247f4c5a03cc22fe6f0fee60a283430bc33a5 Mon Sep 17 00:00:00 2001 From: Alex Paven Date: Tue, 20 Jan 2015 10:32:04 +0000 Subject: [PATCH] Added the serializer configuration option It's not specified in the documentation but it exists and it's definitely useful. --- knockout.postbox/knockout-postbox.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/knockout.postbox/knockout-postbox.d.ts b/knockout.postbox/knockout-postbox.d.ts index 65f0bbf132..1dfda1a255 100644 --- a/knockout.postbox/knockout-postbox.d.ts +++ b/knockout.postbox/knockout-postbox.d.ts @@ -9,6 +9,7 @@ interface KnockoutPostBox { subscribe(topic: string, handler: (value: T) => void , target?: any): KnockoutSubscription; publish(topic: string, value?: T): void; defaultComparer(newValue: T, oldValue: T): boolean; + serializer: (object: any) => string; } interface KnockoutObservable { @@ -29,4 +30,4 @@ interface KnockoutObservableArray { interface KnockoutStatic { postbox: KnockoutPostBox; -} \ No newline at end of file +}