Fixed Marionette test errors

This commit is contained in:
Josh Hunt
2017-08-21 16:58:37 +12:00
parent 2860044a46
commit 2ac9343b76
+3 -3
View File
@@ -1222,7 +1222,7 @@ declare namespace Marionette {
/**
* Define options to pass to the childView constructor.
*/
childViewOptions: (() => ViewOptions<TModel>) | ViewOptions<TModel>;
childViewOptions: ((model: TModel, index: number) => ViewOptions<TModel>) | ViewOptions<TModel>;
/**
* Prevent some of the underlying collection's models from being
@@ -1245,12 +1245,12 @@ declare namespace Marionette {
/**
* Specify a view to use if the collection has no children.
*/
emptyView: (() => typeof Backbone.View) | typeof Backbone.View;
emptyView: (() => { new(...args: any[]): Backbone.View<TModel> }) | { new(...args: any[]): Backbone.View<TModel> };
/**
* Define options to pass to the emptyView constructor.
*/
emptyViewOptions: (() => ViewOptions<TModel>) | ViewOptions<TModel>;
emptyViewOptions: ((model: TModel, index: number) => ViewOptions<TModel>) | ViewOptions<TModel>;
/**
* Method used to determine when emptyView is rendered.