mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
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:
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user