Commit Graph
21686 Commits
Author SHA1 Message Date
Denis 80e5c9b45b Define Turf 3.5.2 definition (#11123)
* Define Turf 3.5.2 definition
Update all methods with newest JSDocs & tests based on the latest TurfJS library.

AGGREGATION
- [x] collect
MEASUREMENT
- [ ] along
- [ ] area
- [ ] bboxPolygon
- [ ] bearing
- [ ] center
- [ ] centroid
- [ ] destination
- [ ] distance
- [ ] envelope
- [ ] lineDistance
- [ ] midpoint
- [ ] pointOnSurface
- [ ] square
TRANSFORMATION
- [ ] bezier
- [ ] buffer
- [ ] concave
- [ ] convex
- [ ] difference
- [ ] intersect
- [ ] simplify
- [ ] union
MISC
- [ ] combine
- [ ] explode
- [ ] flip
- [ ] kinks
- [ ] lineSlice
- [ ] pointOnLine
HELPER
- [x] featureCollection
- [x] feature
- [x] lineString
- [x] multiLineString
- [x] point
- [x] multiPoint
- [x] polygon
- [x] multiPolygon
- [x] geometryCollection
DATA
- [x] random
- [x] sample
INTERPOLATION
- [ ] isolines
- [ ] planepoint
- [ ] tin
JOINS
- [ ] inside
- [ ] tag
GRIDS
- [ ] hexGrid
- [ ] pointGrid
- [ ] squareGrid
- [ ] triangleGrid
- [ ] within
CLASSIFICATION
- [ ] nearest
META
- [ ] propEach
- [ ] coordEach
- [ ] coordReduce
- [ ] featureEach
- [ ] getCoord
ASSERTIONS
- [ ] featureOf
- [ ] collectionOf
- [ ] bbox
- [ ] circle
- [ ] geojsonType
- [ ] propReduce
- [ ] coordAll
- [ ] tesselate

* Added Turf Grids functions
- Added more variables to data initialisation.
- Remove excess feature points.
- Add URL in `@name` in function JSDocs

GRIDS
- [x] hexGrid
- [x] pointGrid
- [x] squareGrid
- [x] triangleGrid

* Use the latest Turf import
- Added in test case how to import individal functions
npm install in Node.js
```
npm install @turf/turf
```
https://github.com/Turfjs/turf

* Change Turf functions into interfaces

* Added Turf typeof units
`units` is an optional parameter for all Turf functions with the following options `'miles' | 'nauticalmiles' | 'degrees' | 'radians' | 'inches' | 'yards' | 'meters' | 'metres' | 'kilometers' | 'kilometres'`

* Update Turf `inside` & `tag`
Add JSDocs & validate both methods

* Add imports to Turf submodules

* Add Author to Turf
@vvakame followed the same syntax as Lodash

* Simplify Turf `intersect` interface
Turf only officially supports `poly,poly`, all other geometry input/outputs are valid, however can't control the outputs.
https://github.com/Turfjs/turf/pull/479

* Comment Turf export default module
Next release of Turf will have this implemented

* Remove default export turf
Was meant to be a comment instead, removed it for now to be safe, it will become available next release

* Added Turf.bbox function
2016-09-19 15:50:52 +09:00
Dmitry A. Efimenko 93d269d6da added prop options and func timeFormatter (#11256)
added property `options`, which can be found in [the code](https://github.com/joewalnes/smoothie/blob/15fc4b62f5b23c8d5dd1784c820ae73f341626e6/smoothie.js#L270).
Even though it's not mentioned in the docs, it useful to be able to access these options after chart is initialized when you want to change appearance in real tme.

added function `timeFormatter`, which is mentioned in [right here, in the definitions](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/smoothie/smoothie.d.ts#L127) and can be found in [the code](https://github.com/joewalnes/smoothie/blob/15fc4b62f5b23c8d5dd1784c820ae73f341626e6/smoothie.js#L795)
2016-09-19 15:49:21 +09:00
TonyYang 28d9437778 Add events for fs (#11277) 2016-09-19 15:30:32 +09:00
TonyYang 48649b8718 [node] Add events and exitedAfterDisconnect in cluster.work (#11275)
* Add events for cluster.worker

* Add exitedAfterDisconnect for cluster.Worker
2016-09-19 15:29:20 +09:00
Endel Dreyer b0a9f0e1db Add totalFrames and duration properties to MovieClip (#11270)
Official documentation for those properties:

- http://www.createjs.com/docs/easeljs/classes/MovieClip.html#property_totalFrames
- http://www.createjs.com/docs/easeljs/classes/MovieClip.html#property_duration
2016-09-19 15:24:20 +09:00
ersimont 18d656dda3 Update angular-ui-bootstrap.d.ts (#11263)
Add `component` option for modals
2016-09-19 15:19:25 +09:00
Alexander Kalitenya 8a8a139621 Update auth0.lock.d.ts (#11199) 2016-09-19 15:17:38 +09:00
Denis 609f1f78e8 Implement concaveman definition (#11262)
* Implement concaveman definition
Author of concaveman module @mourner

* remove console log
2016-09-19 15:17:07 +09:00
Nick Graef 50155318b2 fix function signatures (#11261)
Documentation: https://github.com/mgonto/restangular#restangular-methods

According to the documentation and source code, `all` and `allUrl` return collections, not elements.
Additionally, the `post` signature without `subElement` is only available on collections, not elements.
2016-09-19 15:16:16 +09:00
Denis c0ce167c10 Improve polylabel ES6 import syntax (#11260)
Using `import * as polylabel from 'polylabel'` is now valid in Typescript vs. require('polylabel').
2016-09-19 15:15:35 +09:00
Zipeng WU 83adc941d1 Support syncBrushing option on Focus component (#11204) 2016-09-19 15:15:16 +09:00
Martin D e69548d340 Fixed arguments for tooltips value formatting (#11253)
* Update c3.d.ts

Fixed arguments for tooltips value formatting

* Update c3.d.ts
2016-09-19 15:15:00 +09:00
Natan Vivo 863fdd02c6 Added component option to angular ui bootstrap modal settings. (#11249) 2016-09-19 15:13:38 +09:00
Constantin 5e55876028 webix - added fail to Promise (#11250) 2016-09-19 15:11:16 +09:00
Tommy Frazier 3e403832f6 Add httpsServerOptions to ServerOptions interface (#11155) 2016-09-19 15:10:41 +09:00
TonyYang 9d4d9924f1 [node] Clean up tls_tests and wrap in namespace (#11248)
* Clean up tls_tests and wrap in namespace for v6.x

* Clean up tls_tests and wrap in namespace for v4.x
2016-09-19 15:10:19 +09:00
Dave Dunkin 7c9f3114a7 Fix elasticsearch get, mget, msearch responses. (#11259)
* Fix elasticsearch get, mget, msearch responses.

* Fix contributor github links.
2016-09-16 12:10:31 -07:00
Horiuchi_H 154a9c0274 Merge pull request #11247 from TonyPythoneer/patch-37
[twilio.d.ts] Since express has been imported, it should be used
2016-09-16 10:44:35 +09:00
Blake Smith 9dbdb50546 Updating elasticsearch definition with some of the missing components (#11149)
* Updating elasticsearch definition with some of the missing components. (https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html#api-cluster-getsettings)
Adding Cluster definitions, one Cat definition.

* Correcting header.
2016-09-15 22:46:59 +09:00
TonyYang 4871fb2876 Add listening for http.Server (#11246) 2016-09-15 22:45:12 +09:00
TonyYang 48f9040fcc [node-tests.ts] Clean up crypto_tests and wrap in namespace (#11242)
* Clean up crypto_tests tests and wrap in namespace

* Clean up crypto_tests and wrap in namespace

* Use let to declares a block scope local variable

* Use let to declares a block scope local variable
2016-09-15 22:44:31 +09:00
TonyYang 62f98f1a3b [node-tests.ts] Clean up http_tests and net_tests (#11240)
* Clean up http_tests and net_tests

* Clean up fs tests and wrap in namespace
2016-09-15 22:43:21 +09:00
Jeremy Foster 89030200ce add err:any to close, flush, and drain methods (#11239) 2016-09-15 22:42:49 +09:00
TonyYang d685402549 [node-tests.ts] The test should test type, not function (#11238)
* The test should test type, not function

* The test should test type, not function
2016-09-15 22:42:34 +09:00
TonyYang a72353df24 [node-tests.ts] A test should move to events_tests in node (#11237)
* A test should move to events_tests in node v6.x

* A test should move to events_tests in node v4.x
2016-09-15 22:42:17 +09:00
TonyYang 9d66141d07 [node.d.ts] Update cluster definition (#11235)
* Update cluster

* Add ;
2016-09-15 22:41:55 +09:00
Mykhailo Stadnyk 1e4db4e187 Added type definitions for new module canvas-gauges (#11211)
* Added type definitions for new module canvas-gauges

* definitions re-factored as a ghost module

* Typo fixed in url protocol
2016-09-15 22:40:19 +09:00
Jacob Baskin d51cb64351 Typings for Busboy (#11227)
* Add typings for Busboy.

* Fix indent style

* Fix for es6 imports

* Re-add module def
2016-09-15 22:24:40 +09:00
Kazuki Oota 6a9eb69291 add access property to table. (#11158)
* add access property.

* fix ci error.
2016-09-15 22:22:12 +09:00
paulmorphy 1a97636e03 Added definition for the missing dns.setServers(servers) method (#11183)
* Added definition for the missing dns.setServers(servers) method

Method is documented here:
https://nodejs.org/docs/latest/api/dns.html#dns_dns_setservers_servers

* Updated definition for dns.resolveMx

The addresses argument passed to the callback function will contain an array of objects
containing both a priority and exchange property:
https://nodejs.org/docs/latest/api/dns.html#dns_dns_resolvemx_hostname_callback
2016-09-15 22:20:21 +09:00
Jonny Stoten a715a56884 Add some typings for multipart upload (#11223) 2016-09-15 22:19:23 +09:00
TonyYang 08850929a3 Since express has been imported, it should be used 2016-09-15 17:10:58 +08:00
Craig 36d40a63a0 types(selenium-webdriver): revert 2.44 as default (#11226)
- previous change would break installing angular-protractor ambient types
- adding myself as author
2016-09-15 08:56:35 +09:00
Igor Oleinikov ead52a8184 Merge pull request #11228 from Igorbek/fix11203-knockout-array
Knockout: Add specialized signatures for subscribe
2016-09-14 11:51:38 -07:00
Igor Oleinikov 47588ba8f9 [knockout] Introduce specialized signatures for subscribe method, specifically common "change" and "beforeChange"
Add subscribe for "arrayChange" event for observable array (fixes #11203)
Improve KnockoutArrayChange status typing.
2016-09-14 11:27:33 -07:00
Craig f46e806408 types(selenium-webdriver): version 2.53.1 (#10852)
- moving selenium-webdriver.d.ts to selenium-webdriver-2.44.0.d.ts
- adding in selenium-webdriver.d.ts for version 2.53.1
2016-09-14 22:21:51 +09:00
Leo Rudberg b73aaa36d3 Fixes #10684 (#10751)
I kept the deprecated `pick` declarations, but added the proposed (JSDoc-influenced) [deprecation annotation](https://github.com/Microsoft/TypeScript/issues/390) to them. The added `pickone` and `pickset` declarations have identical types to their respective `pick` flavors.
2016-09-14 22:20:28 +09:00
Nick Graef ff71c3d812 enforce action hash type in $resource() (#11212) 2016-09-14 22:20:03 +09:00
TonyYang 3423aa94ff connection are socket are same in IncomingMessage (#11219) 2016-09-14 22:17:36 +09:00
rgozim 81197a3926 Change #Extend PolyMouseEvent interface from MouseEvent interface (#11218)
PolyMouseEvent should inherit from MouseEvent according to google documentation https://developers.google.com/maps/documentation/javascript/3.exp/reference#PolyMouseEvent
2016-09-14 22:16:59 +09:00
TonyYang 8193bc8f6e [node.d.ts] Add definite events for Readable and Writable (#11217)
* Add definite events for Readable and Writable

* Delete comments in cluster

* Recovery cluster

* Remove interface extends events.EventEmitter
2016-09-14 22:13:43 +09:00
Meno Abels ef6b6ef139 Added https type to Websocket.Server (#11213)
* Added https type to Websocket.Server

Hi,

the current typing misses to pass to the Websocket.Server server option a https Server.

Cheers

meno

* * added a test
* fix the missing typo of http(s)

* improve the test
2016-09-14 22:11:22 +09:00
Jonathon T 489541498b [angular-ui-scroll] Include startIndex parameter on adapter reload() method (#11216)
As per docs here: https://github.com/angular-ui/ui-scroll
`reload()` includes a `startIndex` parameterl;
2016-09-14 22:11:04 +09:00
Ayman Nedjmeddine 2b69abecc8 Updated Validator API to v5.7.0 (#11209) 2016-09-14 22:03:11 +09:00
Cyril Schumacher e9bd268321 Add definition for "bunnymq" and "strftime". (#11188)
* Add definition for "bunnymq".

* Add definition for "strftime".
2016-09-14 21:58:56 +09:00
Ian Ker-Seymer 3cbdc08f81 Add typings for react-virtualized (#11148) 2016-09-14 21:57:21 +09:00
sguest 5f23898c6f videojs corrections (#11193)
ready() is chainable, on() will provide event object to callback, off() can be called without callback and without event name
2016-09-14 21:56:56 +09:00
Stefan Dobrev 5262c27b6e Fix redux-promise export (#11200)
`redux-promise` is using an old version of Babel which transpiles
`default` export to:
```js
exports['default'] = promiseMiddleware;
module.exports = promiseMiddleware;
```

Fix the declaration file to respect this.
2016-09-14 21:51:20 +09:00
Thomas Champagne 3a0684743e Must be "tooltips" (plurar) instead of "tooltip" (#11180)
...must be "tooltips" (plurar) instead of "tooltip" in ChartOptions

My custom callback given in "ChartTooltipOptions.custom" was never called... :/ "tooltips" (plurar) is OK

Take a look @ http://www.chartjs.org/docs/#advanced-usage-external-tooltips
2016-09-14 21:49:27 +09:00
linusbrolin 73e5a50266 Added an overload for the default mongoose plugin function (#11202)
This fixes typing errors when other plugins (with different types of
options) are used on the same model as this one.
2016-09-14 21:47:12 +09:00