WinJS control constructors do not require an element to be passed. If no element is passed, an element is created during construction and accessible via the 'element' property.
The second parameter for show/hideCommands for AppBar can be optional, especially since it is deprecated, it is actually encouraged to not specify it.
The 'commands' property of both AppBar and Menu can take both a single command or an array of commands. Since there is no syntax to type this duality, we should indicate an array of commands instead.
As the docs say, these 2 properties are HTMLElements.
The 'calendar' property is a format string.
Fixed some any-typed properties.
Provided an interface for the currentItem property. Fixed up some minor typing and visibility issues in ListView.
This guy can be even more specialized - it takes only img tags.
As the docs indicate, the 2nd parameter is optional.
Parameterized some utility functions. This assures that the return type and the input type are always the same.
Fixed some typing in WinJS.Utilities.
Missing property in the WinJS.Utilities namespace.
As the doc says, the type of the first parameter is the VALUE (not the promise itself) to be returned by the return promise.
Merge pull request #2016 from jseanxu/winjs

WinJS