Commit Graph

104 Commits

Author SHA1 Message Date
Paul van Brenk
251be47a58 Merge pull request #15130 from ddwwcruz/async
@types/async es6 generators on collection functions
2017-03-22 15:55:36 -07:00
Erik Krogh Kristensen
dda288d3f6 async: fixed the types of async.transform 2017-03-14 15:37:32 +01:00
Erik Krogh Kristensen
04573ae491 async: Changed strictNullChecks to true, and fixed the tests 2017-03-13 14:27:09 +01:00
Erik Krogh Kristensen
8875c23774 async: 3 more small errors i found 2017-03-13 14:20:12 +01:00
Erik Krogh Kristensen
aebfd7772b async: reflectAll err is always null 2017-03-13 12:53:33 +01:00
Erik Krogh Kristensen
10b1dd1ba5 Async: made AsyncFunction return void again. 2017-03-13 10:20:33 +01:00
Wayne Dela Cruz
7e7c310f87 Remove no-implicit-any errors 2017-03-12 20:53:01 +08:00
Wayne Dela Cruz
a36360d8ad Rename funcCollection to collectionGenerator
This makes the purpose of the function more easily understood
2017-03-12 20:40:35 +08:00
Wayne Dela Cruz
7f38aadb26 Rename funcCbErrBoolean to booleanIterator
This is so that the naming styles are more uniform
2017-03-12 20:39:32 +08:00
Wayne Dela Cruz
54fb7a9dd3 Create test for concat 2017-03-12 20:38:23 +08:00
Wayne Dela Cruz
c33147893d Create tests for detect, detectLimit, detectSeries 2017-03-12 20:27:14 +08:00
Wayne Dela Cruz
1ebd2d32fc Create tests for some, someLimit, someSeries 2017-03-12 20:25:10 +08:00
Wayne Dela Cruz
393e69180f Create tests for every, everyLimit, everySeries 2017-03-12 20:22:38 +08:00
Wayne Dela Cruz
2b867f834a Create tests for each and eachOf, etc. 2017-03-12 20:03:07 +08:00
Wayne Dela Cruz
44063a39a6 Create tests for filters, selects, and rejects
* filter
* filterSeries
* filterLimit
* select
* selectSeries
* selectLimit
* reject
* rejectSeries
* rejectLimit
2017-03-12 18:23:07 +08:00
Wayne Dela Cruz
d5104ae563 Create tests for map functions 2017-03-12 18:12:12 +08:00
Wayne Dela Cruz
ea071735a0 Create files for testing generators 2017-03-12 18:11:56 +08:00
Wayne Dela Cruz
da7e47127b Collection functions accept IterableIterator 2017-03-12 17:59:08 +08:00
Wayne Dela Cruz
68d2209e33 Set compile target to es6 2017-03-12 17:56:40 +08:00
Erik Krogh Kristensen
eadbc0cd3b async: Various fixes, mostly related to strict-nulls.
Also some places where the error type was wrong.
2017-03-06 15:32:29 +01:00
Pascal Martin
33ac73d1f4 Make timeout info param optional (#14034)
Add support for timeout with AsyncResulIterator
Add support for queue with AsyncResullIterator
2017-01-18 10:23:09 -08:00
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
76a710cc94 Rename test files to be consistent (#13882) 2017-01-10 06:33:06 -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
Elias Winberg
50b94f140d Fix definitions for 'mapValues', 'mapValuesLimit', 'mapValuesSeries' 2016-12-11 18:42:47 +01:00
Nathan Shively-Sanders
2f92400b50 More fixes to adjust to released compiler 2016-11-22 08:58:23 -08:00
Nathan Shively-Sanders
983c93531a Merge branch 'types-2.0' into types-merge-20161118 2016-11-21 16:16:59 -08:00
Mine Yalcinalp Starks
253e456e3c Merge remote-tracking branch 'upstream/master' into types-2.0
Many badly resolved merge conflicts
2016-11-18 20:42:46 -08:00
Hugo Leclerc
d5913e497b Adding error types in explicit calls of async-tests 2016-11-10 09:50:36 +01:00
Hugo Leclerc
88a6a82c69 Merge branch 'master' of github.com:DefinitelyTyped/DefinitelyTyped
Actual changes concern type of `err` that can be of any type (async only needs to convert them to boolean)
2016-11-10 09:34:28 +01:00
Kanchalai Tanglertsampan
2bac593bcf Fix build error from merging 2016-11-09 17:20:56 -08:00
Kanchalai Tanglertsampan
1200f753d6 Merge branch 'master' into types-2.0
# Conflicts:
#	.gitignore
#	ajv/ajv.d.ts
#	angular-material/angular-material.d.ts
#	angular-protractor/angular-protractor.d.ts
#	angularjs/angular-tests.ts
#	angularjs/angular.d.ts
#	aws-sdk/aws-sdk.d.ts
#	electron-devtools-installer/electron-devtools-installer-tests.ts
#	electron-json-storage/electron-json-storage-tests.ts
#	electron-notifications/electron-notifications.d.ts
#	electron-notify/electron-notify.d.ts
#	electron-window-state/electron-window-state.d.ts
#	electron/electron-prebuilt.d.ts
#	enzyme/enzyme.d.ts
#	eventemitter3/eventemitter3-tests.ts
#	eventemitter3/eventemitter3.d.ts
#	graphql/graphql.d.ts
#	highcharts/highcharts.d.ts
#	immutable/immutable.d.ts
#	inquirer/inquirer.d.ts
#	jasmine/jasmine.d.ts
#	joi/joi.d.ts
#	jquery.dataTables/jquery.dataTables-tests.ts
#	jquery.dataTables/jquery.dataTables.d.ts
#	kafka-node/kafka-node.d.ts
#	kefir/kefir.d.ts
#	kendo-ui/kendo-ui.d.ts
#	koa/koa.d.ts
#	leaflet/leaflet.d.ts
#	lodash/lodash.d.ts
#	mapbox-gl/mapbox-gl.d.ts
#	material-ui/material-ui.d.ts
#	menubar/menubar.d.ts
#	mongodb/mongodb.d.ts
#	needle/needle-tests.ts
#	needle/needle.d.ts
#	noble/noble.d.ts
#	node/node.d.ts
#	pegjs/pegjs.d.ts
#	pixi.js/pixi.js.d.ts
#	polymer/polymer.d.ts
#	quill/quill-tests.ts
#	quill/quill.d.ts
#	react-bootstrap/react-bootstrap.d.ts
#	react-fa/react-fa-tests.tsx
#	react-fa/react-fa.d.ts
#	react-native/react-native.d.ts
#	react-select/react-select.d.ts
#	react/react.d.ts
#	threejs/three-vrcontrols.d.ts
#	threejs/three-vreffect.d.ts
#	toastr/toastr.d.ts
#	validator/validator.d.ts
#	webpack/webpack.d.ts
#	winston/winston.d.ts
2016-11-09 17:20:41 -08:00
Fenying
0ad4edb4e8 Improvement to definitions of module async. (#12180)
* Updated module async.

1. Added Dictionary for the collection APIs.
2. Fixed incorrected callback definition for some collection APIs.

* Simplify some definitions of module async.

* Fixed the callback type of async.someLimit.
2016-11-01 21:25:56 +09:00
Hugo Leclerc
d82038ed3d async: in callbacks args, err can be of any type, not necessarily Error (or string as seen before) => use of a generic type. Remove path.exist from async-test + use of node.d.ts to get the exact content of the fs module. 2016-10-11 17:39:26 +02:00
Hugo Leclerc
72e05196c1 cont mod signature async.[all,every,any,some...] (Error,boolean for the second callback) 2016-10-11 16:03:28 +02:00
Hugo Leclerc
103654a0f1 modification of signature of async.[any,all,every,...] which actually works with a second callback of type (Error,boolean)=>void (async version 2.0.1) 2016-10-11 15:44:33 +02:00
Mohamed Hegazy
13dec92fd9 Fix failing tests after https://github.com/Microsoft/TypeScript/pull/11263 (#11835)
* Fix fialing tests after https://github.com/Microsoft/TypeScript/pull/11263

* Fix more failures
2016-10-07 14:41:25 -07:00
Mine Yalcinalp Starks
29e75d32e1 Merge remote-tracking branch 'upstream/master' into types2.0-fix 2016-08-05 17:32:30 -07:00
Erik Krogh Kristensen
7802515457 Updating async to v2.0.1. 2016-08-04 13:33:11 +02:00
Ryan Cavanaugh
ede3f0a99c Merge commit 'upstream/master~550' into merge_7_25 2016-07-26 11:29:27 -07:00
Ryan Cavanaugh
5d004be8ba Merge commit 'upstream/master~600' into merge_7_25 2016-07-26 00:22:12 -07:00
Ryan Cavanaugh
347311a5f0 Partial merge remote-tracking branch 'upstream/master' into merge_7_25 2016-07-25 14:26:20 -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
Steve Van Opstal
2901b0c3c4 caolan/async: add missing optional type to 'retry' (#9506)
* async: add function type to interval of 'retry'

* fix return type number
2016-06-03 00:26:29 +09:00
Finn Poppinga
d98b8d6cbf async.d.ts AsyncForEachOfIterator key type fix (#9469)
the key can be either a string (in case of objects) or a number (in case of arrays).
2016-06-02 23:20:58 +09:00
Ryan Cavanaugh
612c172c52 Use correct test list 2016-05-10 12:28:03 -07:00
Ryan Cavanaugh
bfd400a8f8 Add noEmit to all config files 2016-05-10 12:24:49 -07:00
Ryan Cavanaugh
e808e8e062 Remove unneeded references 2016-05-10 12:22:25 -07:00