Make it possible to initialize a Backbone.Collection from raw objects
Make it possible to initialize a Backbone.Collection from raw objects

The following syntax is supported in Backbone, but is currently not compileable in Typescript:

    var data = [
      { id: 1, bar: 'foo' },
      { id: 2, bar: 'baz' }
    ];

    var myCollection = new Backbone.Collection(data);

As of now, the constructor expects an array of models. I've added the Object[] parameter type, in addition to the TModel[] type to support this syntax.
TanakaYutaro/DefinitelyTyped,dsebastien/DefinitelyTyped,abner/DefinitelyTyped,alextkachman/DefinitelyTyped,emanuelhp/DefinitelyTyped,takenet/DefinitelyTyped,olemp/DefinitelyTyped,AgentME/DefinitelyTyped,corps/DefinitelyTyped,elisee/DefinitelyTyped,Karabur/DefinitelyTyped,bluong/DefinitelyTyped,slavomirvojacek/adbrain-typescript-definitions,pocesar/DefinitelyTyped,Syati/DefinitelyTyped,jbrantly/DefinitelyTyped,OpenMaths/DefinitelyTyped,Pro/DefinitelyTyped,innerverse/DefinitelyTyped,jeremyhayes/DefinitelyTyped,florentpoujol/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,chrootsu/DefinitelyTyped,gyohk/DefinitelyTyped,progre/DefinitelyTyped,Syati/DefinitelyTyped,vincentw56/DefinitelyTyped,trystanclarke/DefinitelyTyped,Kuniwak/DefinitelyTyped,nabeix/DefinitelyTyped,vagarenko/DefinitelyTyped,aldo-roman/DefinitelyTyped,Minishlink/DefinitelyTyped,Riron/DefinitelyTyped,Penryn/DefinitelyTyped,zuzusik/DefinitelyTyped,robert-voica/DefinitelyTyped,opichals/DefinitelyTyped,jiaz/DefinitelyTyped,felipe3dfx/DefinitelyTyped,schmuli/DefinitelyTyped,almstrand/DefinitelyTyped,alvarorahul/DefinitelyTyped,bencoveney/DefinitelyTyped,DzmitryDulko/DefinitelyTyped,fearthecowboy/DefinitelyTyped,nycdotnet/DefinitelyTyped,sledorze/DefinitelyTyped,GodsBreath/DefinitelyTyped,hellopao/DefinitelyTyped,tboyce/DefinitelyTyped,shovon/DefinitelyTyped,yuit/DefinitelyTyped,wilfrem/DefinitelyTyped,drinchev/DefinitelyTyped,behzad888/DefinitelyTyped,Softpagehomeware/DefinitelyTyped,wbuchwalter/DefinitelyTyped,Zzzen/DefinitelyTyped,arusakov/DefinitelyTyped,eugenpodaru/DefinitelyTyped,eekboom/DefinitelyTyped,pocke/DefinitelyTyped,erosb/DefinitelyTyped,newclear/DefinitelyTyped,takfjt/DefinitelyTyped,HereSinceres/DefinitelyTyped,RX14/DefinitelyTyped,jimthedev/DefinitelyTyped,nfriend/DefinitelyTyped,aciccarello/DefinitelyTyped,scsouthw/DefinitelyTyped,forumone/DefinitelyTyped,hx0day/DefinitelyTyped,rcchen/DefinitelyTyped,Penryn/DefinitelyTyped,MarlonFan/DefinitelyTyped,mrk21/DefinitelyTyped,sclausen/DefinitelyTyped,daptiv/DefinitelyTyped,TrabacchinLuigi/DefinitelyTyped,damianog/DefinitelyTyped,mattblang/DefinitelyTyped,danfma/DefinitelyTyped,omidkrad/DefinitelyTyped,nitintutlani/DefinitelyTyped,rschmukler/DefinitelyTyped,pwelter34/DefinitelyTyped,gandjustas/DefinitelyTyped,martinduparc/DefinitelyTyped,deeleman/DefinitelyTyped,paulmorphy/DefinitelyTyped,fredgalvao/DefinitelyTyped,ashwinr/DefinitelyTyped,vsavkin/DefinitelyTyped,RX14/DefinitelyTyped,nodeframe/DefinitelyTyped,amir-arad/DefinitelyTyped,laball/DefinitelyTyped,rcchen/DefinitelyTyped,teddyward/DefinitelyTyped,JaminFarr/DefinitelyTyped,progre/DefinitelyTyped,fredgalvao/DefinitelyTyped,esperco/DefinitelyTyped,adamcarr/DefinitelyTyped,mvarblow/DefinitelyTyped,micurs/DefinitelyTyped,arusakov/DefinitelyTyped,dsebastien/DefinitelyTyped,greglo/DefinitelyTyped,kuon/DefinitelyTyped,nmalaguti/DefinitelyTyped,sclausen/DefinitelyTyped,NelsonLamprecht/DefinitelyTyped,ahmedalsudani/DefinitelyTyped,Zorgatone/DefinitelyTyped,philippstucki/DefinitelyTyped,aroder/DefinitelyTyped,YousefED/DefinitelyTyped,nojaf/DefinitelyTyped,amanmahajan7/DefinitelyTyped,bpowers/DefinitelyTyped,donnut/DefinitelyTyped,emanuelhp/DefinitelyTyped,igorsechyn/DefinitelyTyped,olemp/DefinitelyTyped,wcomartin/DefinitelyTyped,arcticwaters/DefinitelyTyped,HPFOD/DefinitelyTyped,philippstucki/DefinitelyTyped,mattblang/DefinitelyTyped,AgentME/DefinitelyTyped,tomtarrot/DefinitelyTyped,use-strict/DefinitelyTyped,isman-usoh/DefinitelyTyped,scatcher/DefinitelyTyped,GlennQuirynen/DefinitelyTyped,cvrajeesh/DefinitelyTyped,Saneyan/DefinitelyTyped,masonkmeyer/DefinitelyTyped,gregoryagu/DefinitelyTyped,evandrewry/DefinitelyTyped,slavomirvojacek/adbrain-typescript-definitions,zalamtech/DefinitelyTyped,Dashlane/DefinitelyTyped,Pipe-shen/DefinitelyTyped,gyohk/DefinitelyTyped,pocesar/DefinitelyTyped,applesaucers/lodash-invokeMap,UzEE/DefinitelyTyped,magny/DefinitelyTyped,mweststrate/DefinitelyTyped,gorcz/DefinitelyTyped,chadoliver/DefinitelyTyped,slavomirvojacek/DefinitelyTyped,alvarorahul/DefinitelyTyped,danfma/DefinitelyTyped,benishouga/DefinitelyTyped,mshmelev/DefinitelyTyped,dragouf/DefinitelyTyped,nainslie/DefinitelyTyped,florentpoujol/DefinitelyTyped,adammartin1981/DefinitelyTyped,scriby/DefinitelyTyped,Zorgatone/DefinitelyTyped,rolandzwaga/DefinitelyTyped,Ridermansb/DefinitelyTyped,DzmitryDulko/DefinitelyTyped,psnider/DefinitelyTyped,psnider/DefinitelyTyped,GregOnNet/DefinitelyTyped,dydek/DefinitelyTyped,EnableSoftware/DefinitelyTyped,Mek7/DefinitelyTyped,alainsahli/DefinitelyTyped,Zenorbi/DefinitelyTyped,mjjames/DefinitelyTyped,chrilith/DefinitelyTyped,mwain/DefinitelyTyped,OfficeDev/DefinitelyTyped,nmalaguti/DefinitelyTyped,manekovskiy/DefinitelyTyped,dumbmatter/DefinitelyTyped,aciccarello/DefinitelyTyped,Ptival/DefinitelyTyped,bjfletcher/DefinitelyTyped,flyfishMT/DefinitelyTyped,algorithme/DefinitelyTyped,robl499/DefinitelyTyped,basp/DefinitelyTyped,tan9/DefinitelyTyped,chrootsu/DefinitelyTyped,sandersky/DefinitelyTyped,abbasmhd/DefinitelyTyped,nobuoka/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,pocesar/DefinitelyTyped,psnider/DefinitelyTyped,paxibay/DefinitelyTyped,ajtowf/DefinitelyTyped,egeland/DefinitelyTyped,xStrom/DefinitelyTyped,drillbits/DefinitelyTyped,greglo/DefinitelyTyped,musicist288/DefinitelyTyped,CodeZombieCH/DefinitelyTyped,lbesson/DefinitelyTyped,chbrown/DefinitelyTyped,DenEwout/DefinitelyTyped,dydek/DefinitelyTyped,Lorisu/DefinitelyTyped,isman-usoh/DefinitelyTyped,subash-a/DefinitelyTyped,arma-gast/DefinitelyTyped,DeadAlready/DefinitelyTyped,Zzzen/DefinitelyTyped,sixinli/DefinitelyTyped,optical/DefinitelyTyped,one-pieces/DefinitelyTyped,rerezz/DefinitelyTyped,billccn/DefinitelyTyped,davidpricedev/DefinitelyTyped,Trapulo/DefinitelyTyped,bdoss/DefinitelyTyped,tjoskar/DefinitelyTyped,jasonswearingen/DefinitelyTyped,minodisk/DefinitelyTyped,maglar0/DefinitelyTyped,martinduparc/DefinitelyTyped,rushi216/DefinitelyTyped,shlomiassaf/DefinitelyTyped,herrmanno/DefinitelyTyped,martinduparc/DefinitelyTyped,schmuli/DefinitelyTyped,benishouga/DefinitelyTyped,mattanja/DefinitelyTyped,maxlang/DefinitelyTyped,borisyankov/DefinitelyTyped,laco0416/DefinitelyTyped,arcticwaters/DefinitelyTyped,NCARalph/DefinitelyTyped,nakakura/DefinitelyTyped,gcastre/DefinitelyTyped,newclear/DefinitelyTyped,Dashlane/DefinitelyTyped,KonaTeam/DefinitelyTyped,timjk/DefinitelyTyped,davidsidlinger/DefinitelyTyped,Ptival/DefinitelyTyped,dwango-js/DefinitelyTyped,dariajung/DefinitelyTyped,johan-gorter/DefinitelyTyped,dpsthree/DefinitelyTyped,mcliment/DefinitelyTyped,bridge-ufsc/DefinitelyTyped,mszczepaniak/DefinitelyTyped,drinchev/DefinitelyTyped,esperco/DefinitelyTyped,rschmukler/DefinitelyTyped,olivierlemasle/DefinitelyTyped,moonpyk/DefinitelyTyped,AgentME/DefinitelyTyped,donnut/DefinitelyTyped,bdoss/DefinitelyTyped,M-Zuber/DefinitelyTyped,tan9/DefinitelyTyped,goaty92/DefinitelyTyped,slavomirvojacek/DefinitelyTyped,jimthedev/DefinitelyTyped,hor-crux/DefinitelyTyped,applesaucers/lodash-invokeMap,optical/DefinitelyTyped,AgentME/DefinitelyTyped,rockclimber90/DefinitelyTyped,smrq/DefinitelyTyped,hiraash/DefinitelyTyped,MugeSo/DefinitelyTyped,jesseschalken/DefinitelyTyped,TheBay0r/DefinitelyTyped,tscho/DefinitelyTyped,wkrueger/DefinitelyTyped,schmuli/DefinitelyTyped,shlomiassaf/DefinitelyTyped,jraymakers/DefinitelyTyped,lseguin42/DefinitelyTyped,glenndierckx/DefinitelyTyped,mcrawshaw/DefinitelyTyped,stacktracejs/DefinitelyTyped,WritingPanda/DefinitelyTyped,syntax42/DefinitelyTyped,fnipo/DefinitelyTyped,mareek/DefinitelyTyped,subash-a/DefinitelyTyped,paulmorphy/DefinitelyTyped,mcrawshaw/DefinitelyTyped,teves-castro/DefinitelyTyped,TildaLabs/DefinitelyTyped,nakakura/DefinitelyTyped,shahata/DefinitelyTyped,PopSugar/DefinitelyTyped,onecentlin/DefinitelyTyped,use-strict/DefinitelyTyped,ErykB2000/DefinitelyTyped,flyfishMT/DefinitelyTyped,whoeverest/DefinitelyTyped,zuohaocheng/DefinitelyTyped,superduper/DefinitelyTyped,chrismbarr/DefinitelyTyped,QuatroCode/DefinitelyTyped,kalloc/DefinitelyTyped,mhegazy/DefinitelyTyped,davidpricedev/DefinitelyTyped,jsaelhof/DefinitelyTyped,glenndierckx/DefinitelyTyped,munxar/DefinitelyTyped,SebastianCoetzee/DefinitelyTyped,RedSeal-co/DefinitelyTyped,hatz48/DefinitelyTyped,alexdresko/DefinitelyTyped,nycdotnet/DefinitelyTyped,alexdresko/DefinitelyTyped,stanislavHamara/DefinitelyTyped,ecramer89/DefinitelyTyped,dmoonfire/DefinitelyTyped,Litee/DefinitelyTyped,damianog/DefinitelyTyped,sledorze/DefinitelyTyped,TrabacchinLuigi/DefinitelyTyped,yuit/DefinitelyTyped,fishgoh0nk/DefinitelyTyped,muenchdo/DefinitelyTyped,gildorwang/DefinitelyTyped,behzad888/DefinitelyTyped,jasonswearingen/DefinitelyTyped,vasek17/DefinitelyTyped,abner/DefinitelyTyped,aciccarello/DefinitelyTyped,zuzusik/DefinitelyTyped,Softpagehomeware/DefinitelyTyped,uestcNaldo/DefinitelyTyped,hatz48/DefinitelyTyped,jraymakers/DefinitelyTyped,wilfrem/DefinitelyTyped,ajtowf/DefinitelyTyped,BrandonCKrueger/DefinitelyTyped,Bunkerbewohner/DefinitelyTyped,reppners/DefinitelyTyped,Pro/DefinitelyTyped,EnableSoftware/DefinitelyTyped,chocolatechipui/DefinitelyTyped,aindlq/DefinitelyTyped,Gmulti/DefinitelyTyped,stylelab-io/DefinitelyTyped,Dominator008/DefinitelyTyped,georgemarshall/DefinitelyTyped,rolandzwaga/DefinitelyTyped,mendix/DefinitelyTyped,stacktracejs/DefinitelyTyped,trystanclarke/DefinitelyTyped,reppners/DefinitelyTyped,timramone/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,jimthedev/DefinitelyTyped,abbasmhd/DefinitelyTyped,lbguilherme/DefinitelyTyped,Shiak1/DefinitelyTyped,abmohan/DefinitelyTyped,bruennijs/DefinitelyTyped,chrismbarr/DefinitelyTyped,benishouga/DefinitelyTyped,stephenjelfs/DefinitelyTyped,minodisk/DefinitelyTyped,axelcostaspena/DefinitelyTyped,georgemarshall/DefinitelyTyped,bridge-ufsc/DefinitelyTyped,markogresak/DefinitelyTyped,mhegazy/DefinitelyTyped,mattanja/DefinitelyTyped,johan-gorter/DefinitelyTyped,HPFOD/DefinitelyTyped,sergey-buturlakin/DefinitelyTyped,QuatroCode/DefinitelyTyped,spearhead-ea/DefinitelyTyped,dmoonfire/DefinitelyTyped,mjjames/DefinitelyTyped,elisee/DefinitelyTyped,sergey-buturlakin/DefinitelyTyped,nobuoka/DefinitelyTyped,pkhayundi/DefinitelyTyped,jsaelhof/DefinitelyTyped,giggio/DefinitelyTyped,arma-gast/DefinitelyTyped,musakarakas/DefinitelyTyped,pwelter34/DefinitelyTyped,ryan10132/DefinitelyTyped,brainded/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,benliddicott/DefinitelyTyped,teves-castro/DefinitelyTyped,zhiyiting/DefinitelyTyped,DeluxZ/DefinitelyTyped,arusakov/DefinitelyTyped,borisyankov/DefinitelyTyped,raijinsetsu/DefinitelyTyped,lightswitch05/DefinitelyTyped,vagarenko/DefinitelyTyped,Nemo157/DefinitelyTyped,onecentlin/DefinitelyTyped,ml-workshare/DefinitelyTyped,PascalSenn/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,stephenjelfs/DefinitelyTyped,IAPark/DefinitelyTyped,bennett000/DefinitelyTyped,syuilo/DefinitelyTyped,Bobjoy/DefinitelyTyped,acepoblete/DefinitelyTyped,nelsonmorais/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,hellopao/DefinitelyTyped,nitintutlani/DefinitelyTyped,Chris380/DefinitelyTyped,egeland/DefinitelyTyped,georgemarshall/DefinitelyTyped,iCoreSolutions/DefinitelyTyped,igorraush/DefinitelyTyped,ryan-codingintrigue/DefinitelyTyped,scriby/DefinitelyTyped,xStrom/DefinitelyTyped,ashwinr/DefinitelyTyped,hafenr/DefinitelyTyped,ayanoin/DefinitelyTyped,amanmahajan7/DefinitelyTyped,subjectix/DefinitelyTyped,AyaMorisawa/DefinitelyTyped,richardTowers/DefinitelyTyped,digitalpixies/DefinitelyTyped,Karabur/DefinitelyTyped,alextkachman/DefinitelyTyped,ciriarte/DefinitelyTyped,Dominator008/DefinitelyTyped,mshmelev/DefinitelyTyped,frogcjn/DefinitelyTyped,zuzusik/DefinitelyTyped,hellopao/DefinitelyTyped,MugeSo/DefinitelyTyped,AyaMorisawa/DefinitelyTyped,frogcjn/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,angelobelchior8/DefinitelyTyped,syuilo/DefinitelyTyped,nainslie/DefinitelyTyped,Jwsonic/DefinitelyTyped,gcastre/DefinitelyTyped,jaysoo/DefinitelyTyped,bilou84/DefinitelyTyped,dflor003/DefinitelyTyped,UzEE/DefinitelyTyped,Almouro/DefinitelyTyped,GlennQuirynen/DefinitelyTyped,takenet/DefinitelyTyped,YousefED/DefinitelyTyped,Litee/DefinitelyTyped,raijinsetsu/DefinitelyTyped,mareek/DefinitelyTyped,smrq/DefinitelyTyped,bennett000/DefinitelyTyped,biomassives/DefinitelyTyped,OpenMaths/DefinitelyTyped,tdmckinn/DefinitelyTyped,CodeZombieCH/DefinitelyTyped,jccarvalhosa/DefinitelyTyped,gandjustas/DefinitelyTyped,lekaha/DefinitelyTyped