Changing the interface merge order

Topics: General, Language Specification
Coordinator
Dec 20, 2013 at 4:43 PM
Based on your feedback, we've changed the interface merge order a little to be more natural for working with libraries like jQuery and lib.d.ts. Specifically, now when you merge interface A with the later interface A (let's call it B), interface B's set of overloads will get a higher priority than A's overloads.

This should make it much more natural to model jQuery plugins and to add new overloads to overloads in lib.d.ts (among others), as you can just reference the plugin or new functionality after the original library.

You can find a little more info about it on the breaking change notices:

https://typescript.codeplex.com/wikipage?title=Known%20breaking%20changes%20between%200.8%20and%200.9&referringTitle=Documentation