diff --git a/types/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts index 6390d4a75e..d833164d06 100644 --- a/types/backbone.marionette/index.d.ts +++ b/types/backbone.marionette/index.d.ts @@ -1222,7 +1222,7 @@ declare namespace Marionette { /** * Define options to pass to the childView constructor. */ - childViewOptions: (() => ViewOptions) | ViewOptions; + childViewOptions: ((model: TModel, index: number) => ViewOptions) | ViewOptions; /** * 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 }) | { new(...args: any[]): Backbone.View }; /** * Define options to pass to the emptyView constructor. */ - emptyViewOptions: (() => ViewOptions) | ViewOptions; + emptyViewOptions: ((model: TModel, index: number) => ViewOptions) | ViewOptions; /** * Method used to determine when emptyView is rendered.