mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Merge pull request #4907 from Softpagehomeware/bugfix/marionette/generics_for_collections
fixed the Collection- / Composite child view issue.
This commit is contained in:
3
backbone/backbone.d.ts
vendored
3
backbone/backbone.d.ts
vendored
@@ -309,7 +309,8 @@ declare module Backbone {
|
||||
|
||||
interface ViewOptions<TModel extends Model> {
|
||||
model?: TModel;
|
||||
collection?: Backbone.Collection<TModel>;
|
||||
// TODO: quickfix, this can't be fixed easy. The collection does not need to have the same model as the parent view.
|
||||
collection?: Backbone.Collection<any>;
|
||||
el?: any;
|
||||
id?: string;
|
||||
className?: string;
|
||||
|
||||
Reference in New Issue
Block a user