mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Added Contrib module.
This commit is contained in:
1 parent
a7dc33cf25
commit
0f3f9615d1
1 file changed
+43
Vendored
+43
@@ -140,4 +140,47 @@ declare module Giraffe {
|
||||
start( options?:any ): App;
|
||||
}
|
||||
|
||||
module Contrib {
|
||||
|
||||
class Controller extends Backbone.Events implements GiraffeObject {
|
||||
app: App;
|
||||
}
|
||||
|
||||
class CollectionView extends View {
|
||||
|
||||
collection: Collection;
|
||||
modelView: View;
|
||||
modelViewArgs: any[];
|
||||
modelViewEl: any;
|
||||
renderOnChange: boolean;
|
||||
|
||||
findByModel( model:Model ): View;
|
||||
addOne( model:Model ): View;
|
||||
removeOne( model:Model ): View;
|
||||
|
||||
static getDefaults( ctx:any ): any;
|
||||
}
|
||||
|
||||
class FastCollectionView extends View {
|
||||
collection: Collection;
|
||||
modelTemplate: any;
|
||||
modelTemplateStrategy: string;
|
||||
modelEl: any;
|
||||
renderOnChange: boolean;
|
||||
|
||||
modelSerialize(): any;
|
||||
|
||||
addAll(): View;
|
||||
addOne( model:Model ): View;
|
||||
removeOne( model:Model ): View;
|
||||
|
||||
removeByIndex( index:number ): View;
|
||||
findElByModel( model:Model ): JQuery;
|
||||
findElByIndex( index:number ): JQuery;
|
||||
findModelByEl( el:any ): Model;
|
||||
|
||||
static getDefaults( ctx:any ): any;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user