Commit Graph

75 Commits

Author SHA1 Message Date
Andy
ae4fe7b6de Use "lib" in tsconfigs instead of "target". (#13968)
* Use "lib" in tsconfigs instead of "target".

Only add "dom" to libraries that need it. This is determined by a script, so many libraries that have "dom" maybe should not.

* Update new-package and readme

* Add back "target" where necessary
2017-01-18 07:51:51 -08:00
Andy
2f71174636 Restructure to support old versions (#13811)
* Restructure to support old versions

* Fix tests
2017-01-06 12:36:57 -08:00
Andy
a4bd9fa3c1 Add "noImplicitThis" to all tsconfig.json (#13446)
* Add "noImplicitThis" to all tsconfig.json

* Use `"noImplicitThis": false` on packages with broken tests.
2016-12-19 14:11:46 -08:00
Mohamed Hegazy
2737acb540 Update WinJS QueryCollection defintion to correctelly implement Array (#11719) 2016-10-05 01:52:35 -07:00
Ryan Cavanaugh
a5f4d50ccc Fix tsconfig files for new option name / behavior.
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -07:00
Raghav Katyal
395c4e1639 Turning on consistent casing flag and fixing failures 2016-06-30 15:14:49 -07:00
Ryan Cavanaugh
185c8f30b6 Fix more reference paths 2016-05-11 16:31:46 -07:00
Ryan Cavanaugh
bfd400a8f8 Add noEmit to all config files 2016-05-10 12:24:49 -07:00
Ryan Cavanaugh
50387d4046 Change relative reference paths to types references. Errors incoming... 2016-05-09 18:06:27 -07:00
Ryan Cavanaugh
49b1ac6a38 Rename all entry points to index.d.ts and explicitify all file lists 2016-05-09 17:29:10 -07:00
Ryan Cavanaugh
ab2b4191c5 Add typesRoot to all config files 2016-05-09 13:52:25 -07:00
Ryan Cavanaugh
33686b47c5 Lots of fixes 2016-05-04 16:30:29 -07:00
Ryan Cavanaugh
ded70421be Turn off strict null checks 2016-05-04 15:08:38 -07:00
Ryan Cavanaugh
69d1929d8a Add tsconfig.json files 2016-05-04 14:14:39 -07:00
Ryan Cavanaugh
15dbdc4c4c Remove *all* tscparams 2016-04-27 20:47:56 -07:00
Ryan Cavanaugh
e7c111c4b7 Merge remote-tracking branch 'upstream/master' into types2.0
Add tsconfig files everywhere

# Conflicts:
#	azure-mobile-services-client/AzureMobileServicesClient.d.ts
#	bookshelf/bookshelf.d.ts
#	hapi/hapi.d.ts
#	helmet/helmet.d.ts
#	mongodb/mongodb.d.ts
#	nock/nock.d.ts
#	react-bootstrap/react-bootstrap.d.ts
#	react-helmet/react-helmet.d.ts
#	restify/restify.d.ts
#	sequelize/sequelize.d.ts
2016-04-27 20:40:21 -07:00
NCC1701M
e1ba8156f2 Add flyout defenition (#8982) 2016-04-18 00:30:52 +09:00
NCC1701M
90b7f1c1c7 Fix compile errors
Change line 9779 from 
```ts
class QueryCollection<T> implements Array<T> {
```
to
```ts
class QueryCollection<T> extends Array<T> {
```
***Because I getting the error TS2420: Class 'QueryCollection<T>' incorrectly implements interface 'T[]'.***
***    Property 'find' is missing in type 'QueryCollection<T>'.***

After implementing find in .d.ts getting next error about method findIndex and so on.

Simplest way to fix it, was let QueryCollection  extends Array and not implement it.

***Typescript version***
1.8.7
2016-03-22 13:55:45 +01:00
vvakame
7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
vvakame
9027703c0b pass npm run all in new definition-tester 2016-02-10 00:16:03 +09:00
Aya Morisawa
7d69a900a5 Remove trailing whitespaces 2016-01-27 19:45:48 +09:00
Giedrius Grabauskas
478cd76f6e Added declaration for commonjs 2015-12-01 11:40:46 +02:00
jessesh
62d8b030ef Fixes "implicit any" errors. 2015-10-05 13:40:22 -07:00
jessesh
0be6de745e This commit contains lots of changes to update the WinJS.d.ts file from WinJS 3.X to WinJS 4.4 2015-10-05 13:24:59 -07:00
Jeff Fisher
6370ba5a78 Big update of WinJS definitions.
Went through and did a large number of fixes as part of converting the WinJS test tree to TypeScript.

Full list of changes:

Fix small issue with WinJS.Promise.timeout. (The first argument should be optional.)

Remove an unnecessary comment about winControl.

Fix WinJS Promise types

Make addEventListener and removeEventListener static.

markDisposable's second argument is optional.

WinJS.UI.Fragments.clearCache had a missing overload.

Add missing overload for WinJS.UI.Fragments.renderCopy.

WinJS.Class.define constructor parameter is optional.

Add override for WinJS.log

Message can also be a function that returns a string.

Also add override for WinJS.Utilities.startLog

All ILogOptions properties are optional.

Make WinJS.log arguments optional.

WinJS.Resources.processAll returns a Promise.

Add WinJS.Utilities.Scheduler.currentPriority

Make WinJS.Promise.wrap()'s argument optional.

Make IXHROptions data property optional.

Add CustomRequestInitializer to IXHROptions.

Correct doc comment for WinJS.Application.*.writeText

Fix declaration for static render on WinJS.Binding.Template.

Add WinJS.Utilities.getTabIndex.

Add overload for WinJS.Utilities.QueryCollection.include

Fix WinJS.Utilities.getRelativeTop and getRelativeLeft parameters.

Add getScrollPosition and setScrollPosition.

Make BindingList.createGrouped last argument optional.

Fix return type of WinJS.UI.computeDataSourceGroups()

Add missing static createResultSuggestionImage to WinJS.UI.SearchBox.

Add missing overload for WinJS.Binding.List.push()

Add generic overload for IItemPromise.then()

Fix the return value of IItemPromise.then to be correct.

Promise.dispatchEvent should be static.

Fix IItemPromise.retain return value.

Create IPromise interface.

This helps type coercion with custom promise types (such as IItemPromise).

Add missing animations to latest d.ts.

Update optional parameters on animations.

Add BindingList.unshift overload

Fix BindingList.sort() to have argument be optional.

Fix arguments for BindingList.splice and BindingList.join

Fix BindingList.lastIndexOf optional second argument.

Fix return time of items in GroupedSortedListProjections.

Make last argument of QueryCollection.template optional.

Fix WinJS.UI.Repeater constructor.

Fix the type of the second parameter of the WinJS.Binding.Template constructor

Update WinJS.UI.ListLayout so that it implements ILayout2.

Update WinJS.UI.GridLayout.

Add static Promise.cancel property.

Add type property to IListViewItem

Make argument to Promise.as optional.

Add AppBar.closedDisplayMode

Make some arguments optional on Flyout.show()

Make arguments optional on Menu.show();

Fix generic type of Hub.zoomableView.

Add missing Promise.then overloads.

Update author information

Fix IPageControlMembers to reflect the real contract.

TypeScript doesn't allow overrides to vary only by return type, so we have to use any as both void and returning a Promise are allowed.

WinJS.UI.Pages.render()'s second argument is optional.

WinJS.UI.Pages.render() returns a promise to the page itself.

Fix return values of WinJS.UI.Pages.get/define.

Add Pivot and PivotItem to latest d.ts.

Fix PivotItem.header type
2014-09-24 14:32:25 -07:00
Basarat Ali Syed
f25ceeddfd Merge pull request #2423 from jseanxu/legacy
Created separate definition files for release versions of WinJS
2014-07-11 22:28:46 +10:00
Sean Xu
2646c36929 Moved released versions into the root folder. 2014-07-07 12:51:19 -07:00
Sean Xu
4bc469d06c Missing semicolon. 2014-06-27 15:29:38 -07:00
Sean Xu
adcbed64b1 Renamed 'legacy' folder to 'releases'. 2014-06-27 15:22:21 -07:00
Sean Xu
57869e481c Created 2.1 definition file. Used 2.0 as a base and changes according to the API change doc ( http://msdn.microsoft.com/en-us/library/windows/apps/dn632432.aspx ) 2014-06-27 12:25:38 -07:00
Basarat Syed
6abe4d7cee chore(winjs) consistent formatting
4 spaces instead of tabs + TS/VS autoformat (trailing spaces + :<space><type> instead of :<type>)
2014-06-25 13:26:53 +10:00
craigktreasure
e62c50cf7b Added isPhone property from WinJS 2.1
Added WinJS 2.1 isPhone property to support WinJS 2.0 and WinJS 2.1 code
sharing in "Universal" Shared projects.

See http://msdn.microsoft.com/en-us/library/windows/apps/dn607959.aspx.
2014-06-23 20:26:48 -07:00
Sean Xu
f222ca2768 Created 2.0 definitions file. Fixed a few removals from 1.0. 2014-06-12 16:56:57 -07:00
Sean Xu
333341f111 Created legacy WinJS 1.0 definitions file. 2014-06-12 13:14:44 -07:00
Sean Xu
05215ffa2c Removed references and dependencies to winrt.d.ts. 2014-06-05 14:49:16 -07:00
Anand Prakash
375d64188a Updated IOHelper.writeText to return WinJS.Promise<number> instead of WinJS.Promise<void> 2014-05-05 19:02:45 -07:00
Anand Prakash
63ae54c867 Added constructor support for QueryCollection<T> interface 2014-04-27 18:38:43 -07:00
Anand Prakash
bfe38c6de7 Made element parameter optional in WinJS.Utilities.query as it is optional in WinJS implementation. See http://msdn.microsoft.com/en-us/library/windows/apps/br229847.aspx. 2014-04-27 17:35:19 -07:00
Anand Prakash
5051de332f Changed QueryCollection to be an interface instead of class so that it can extend Array interface. In WinJS implementaion, QueryCollection extends Array and all Array members should be available on QueryCollection. 2014-04-27 17:33:12 -07:00
Anand Prakash
1d55f70e34 Fixed local, roaming and temp definitions on WinJS.Application object. These should be instances on IOHelper as defined in WinJS. 2014-04-27 17:29:43 -07:00
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