mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Merge pull request #587 from nvivo/bb_marionette_fixes
Fixes/Improvements for Backbone and Marionette definitions.
This commit is contained in:
Vendored
+2
-2
@@ -135,7 +135,7 @@ declare module Backbone {
|
||||
|
||||
static extend(properties: any, classProperties?: any): any; // do not use, prefer TypeScript's extend functionality
|
||||
|
||||
model: Model;
|
||||
model: any;
|
||||
models: any;
|
||||
collection: Model;
|
||||
length: number;
|
||||
@@ -265,7 +265,7 @@ declare module Backbone {
|
||||
$(selector: string): JQuery;
|
||||
model: Model;
|
||||
collection: Collection;
|
||||
template: (data: any) => string;
|
||||
template: (data?: any) => string;
|
||||
make(tagName: string, attrs?, opts?): View;
|
||||
setElement(element: HTMLElement, delegate?: bool);
|
||||
id: string;
|
||||
|
||||
Vendored
+8
-6
@@ -106,7 +106,7 @@ declare module Marionette {
|
||||
|
||||
function getOption(target, optionName): any;
|
||||
function triggerMethod(name, ...args: any[]): any;
|
||||
function MonitorDOMRefresh(view: View): void;
|
||||
function MonitorDOMRefresh(view: Backbone.View): void;
|
||||
function bindEntityEvents(target, entity, bindings);
|
||||
function unbindEntityEvents(target, entity, bindings);
|
||||
|
||||
@@ -126,11 +126,11 @@ declare module Marionette {
|
||||
|
||||
el: any;
|
||||
|
||||
show(view: View): void;
|
||||
show(view: Backbone.View): void;
|
||||
ensureEl(): void;
|
||||
open(view: View): void;
|
||||
open(view: Backbone.View): void;
|
||||
close(): void;
|
||||
attachView(view: View);
|
||||
attachView(view: Backbone.View);
|
||||
reset();
|
||||
}
|
||||
|
||||
@@ -214,7 +214,7 @@ declare module Marionette {
|
||||
ui: any;
|
||||
|
||||
serializeData(): any;
|
||||
render(): View;
|
||||
render(): ItemView;
|
||||
close();
|
||||
}
|
||||
|
||||
@@ -229,7 +229,7 @@ declare module Marionette {
|
||||
|
||||
triggerBeforeRender();
|
||||
triggerRendered();
|
||||
render(): View;
|
||||
render(): CollectionView;
|
||||
|
||||
getItemView(item: any): ItemView;
|
||||
addItemView(item: any, ItemView: ItemView, index: Number);
|
||||
@@ -254,6 +254,7 @@ declare module Marionette {
|
||||
itemView: any;
|
||||
itemViewContainer: string;
|
||||
|
||||
render(): CompositeView;
|
||||
appendHtml(cv: any, iv: any);
|
||||
renderModel(): any;
|
||||
}
|
||||
@@ -264,6 +265,7 @@ declare module Marionette {
|
||||
|
||||
addRegion(name: string, definition: any): Region;
|
||||
addRegions(regions: any): any;
|
||||
render(): Layout;
|
||||
removeRegion(name: string);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user