mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00: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:
parent
f99f5be663
commit
34c247f4c5
3
knockout.postbox/knockout-postbox.d.ts
vendored
3
knockout.postbox/knockout-postbox.d.ts
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user