Commit Graph

33 Commits

Author SHA1 Message Date
jseanxu
55c1ee5cd1 As the doc says, the type of the first parameter is the VALUE (not the promise itself) to be returned by the return promise. 2014-04-09 15:22:55 -07:00
jseanxu
27b4741d5c Missing property in the WinJS.Utilities namespace. 2014-04-09 15:22:08 -07:00
jseanxu
f3b8cfb7e3 Fixed some typing in WinJS.Utilities. 2014-04-09 15:21:51 -07:00
jseanxu
a85238496d Parameterized some utility functions. This assures that the return type and the input type are always the same. 2014-04-09 15:21:07 -07:00
jseanxu
40c621ae5c As the docs indicate, the 2nd parameter is optional. 2014-04-09 15:19:51 -07:00
jseanxu
722788bcc7 This guy can be even more specialized - it takes only img tags. 2014-04-09 15:19:33 -07:00
jseanxu
793e49acba Provided an interface for the currentItem property. Fixed up some minor typing and visibility issues in ListView. 2014-04-09 15:19:02 -07:00
jseanxu
b69147f2a5 Fixed some any-typed properties. 2014-04-09 15:17:52 -07:00
jseanxu
dcff230b75 The 'calendar' property is a format string. 2014-04-09 15:16:22 -07:00
jseanxu
fac68f1264 As the docs say, these 2 properties are HTMLElements. 2014-04-09 15:14:27 -07:00
jseanxu
c4cfea06a6 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. 2014-04-09 15:13:47 -07:00
jseanxu
0a7bf0d889 The second parameter for show/hideCommands for AppBar can be optional, especially since it is deprecated, it is actually encouraged to not specify it. 2014-04-09 15:12:08 -07:00
jseanxu
2de7bfe627 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. 2014-04-09 15:10:08 -07:00
basarat
82fcdaf511 winjs - winrt updates Merge branch 'master' of https://github.com/craigktreasure/DefinitelyTyped into winjs-updates 2014-01-26 11:16:12 +11:00
craigktreasure
4b18584819 WinJS.Binding updates from Adam
Updated WinRt from @adamhewitt627 as well as his changes for
WinJS.Binding.
2014-01-24 20:54:12 -08:00
Bart van der Schoor
5263434c20 added/fixed few headers
https://github.com/borisyankov/DefinitelyTyped/issues/1570

cleaned up some more, mostly urls and typos
2014-01-25 01:08:33 +01:00
Bartvds
d436daf4c2 added/fixed headers t-z
https://github.com/borisyankov/DefinitelyTyped/issues/1570
2014-01-24 02:59:02 +01:00
craigktreasure
bde65f741d Fixed the Page object.
Generated pages don't play nicely with the optional options parameter.
Made it required.
2014-01-22 21:19:08 -08:00
craigktreasure
c47a3ad39c Lots of small updates
Object -> any
Other small corrections
2014-01-22 21:01:34 -08:00
craigktreasure
d182a6e43d WinJS file heading
Re-added license and WinRT reference.
2014-01-20 17:50:27 -08:00
craigktreasure
7f91e75893 Full WinJS and WinRT update
This contains a complete WinJS type definition with required WinRT type
definition update.
2014-01-20 17:46:56 -08:00
vvakame
24cc356d6f Remove not required tscparams 2014-01-11 22:55:11 +09:00
Adam Hewitt
1f2d03f0ef fix missing file reference 2014-01-10 14:54:37 -08:00
Adam Hewitt
556523ad40 work so it will still compile if implicit any is turned off 2014-01-04 12:51:36 -08:00
Adam Hewitt
b0d6f6912e work to extend the definitions for WinJS and WinRT 2014-01-04 11:56:15 -08:00
vvakame
2708bc05cd Fixed tsc failed on Node.js v0.8.25 2013-10-03 11:23:38 +09:00
vvakame
3fe1f6bc4e Fixed to CI test passing 2013-10-03 10:18:58 +09:00
Aaron
dbcb92dc96 Update win.js to include the Template class 2013-10-02 11:25:04 -05:00
Aaron
856043d464 Added WinJS.Binding.Template class
I did not add the unusual function `render.value(...)` as I didn't know how to represent that cleanly in TypeScript.
2013-10-02 08:41:56 -05:00
Aaron
8c8629ffb7 Update winjs.d.ts to include a large number of missing functions from the List class. 2013-09-23 13:16:09 -05:00
Aaron
c407adfd5e Update winjs.d.ts to include proper signature for createGrouped function
createGrouped was missing a required parameter.
2013-09-20 17:10:50 -05:00
Aaron
e26d31d81d Update winjs.d.ts to include the class ErrorFromName
From http://msdn.microsoft.com/en-us/library/windows/apps/br211689.aspx#methods, the class ErrorFromName was missing.
2013-08-30 15:37:28 -05:00
basarat
e41aa1f64d winjs/winrt from TypeScript samples 2013-08-28 21:50:03 +10:00