Export ViewModel and CollectionObservable

CollectionObservable and ViewModel are commonly extended by consumers of Knockback and are part of the public api.
This commit is contained in:
Nils Lundquist
2015-01-07 12:31:35 -07:00
parent 30cfe7dedb
commit 1a4e77db81
+3 -1
View File
@@ -3,7 +3,7 @@
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../backbone/backbone.d.ts" />
/// <reference path="../backbone/backbone.d.ts" />a
/// <reference path="../knockout/knockout.d.ts" />
declare module Knockback {
@@ -163,6 +163,8 @@ declare module Knockback {
}
interface Static extends Utils {
ViewModel;
CollectionObservable;
collectionObservable(model?: Backbone.Collection<Backbone.Model>, options?: CollectionOptions): CollectionObservable;
/** Base class for observing model attributes. */
observable(