Commit Graph
21746 Commits
Author SHA1 Message Date
Andy d3fe88e09b Merge pull request #11331 from twail-net/parse-mockdb
added typings for parse-mockdb
2016-09-20 07:59:00 -07:00
Andy a32086b500 Merge pull request #11332 from ethanresnick/master
Improve twilio typings
2016-09-20 07:57:27 -07:00
Andy a44d58751e Merge pull request #11206 from seawerst/master
requirejs.RequireConfig
2016-09-20 07:48:05 -07:00
Ethan Resnick 962044d3ce Capitalize WebhookOptions 2016-09-20 10:46:08 -04:00
David Poetzsch-Heffter 0502f8480e added import statement 2016-09-20 16:44:20 +02:00
Andy c151763c60 Merge pull request #10668 from smfeest/multi_slot_transclude
Add additional $transclude function parameters
2016-09-20 07:42:39 -07:00
Andy 11f97ec9ae Merge pull request #11179 from NoHomey/patch-22
Fixes #11185 [jest] jest.d.ts needs update
2016-09-20 07:24:16 -07:00
Andy 492db5b033 Merge pull request #10777 from massimocode/master
Durandal - Fixes to DialogContext. See below:
2016-09-20 06:50:44 -07:00
Andy 549e7e37bc Merge pull request #11268 from ligaz/patch-4
Add justifyContent to CssProperties
2016-09-20 06:49:14 -07:00
Andy 65f7bc4f1c Merge pull request #11321 from pafflique/patch-6
Concat second+ parameter can be plain value.
2016-09-20 06:44:51 -07:00
Andy 9221c98fd4 Merge pull request #11337 from akankov/patch-1
fromData type fix
2016-09-20 06:27:45 -07:00
Stefan Dobrev 6eaf28d303 Add justifyContent to CssProperties
`justifyContent ` was missing from CssProperties and this PR adds it. More information about it [here](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content).
2016-09-20 08:51:04 +03:00
akankov 4b32d529eb fromData type fix 2016-09-20 12:48:54 +07:00
Horiuchi_H a46b68d63e Merge pull request #11333 from simonxca/patch-mongoose
fixes model.discriminator() signature fixes #11323 #10878
2016-09-20 14:38:37 +09:00
Ethan Resnick b434572f41 fixup tests
Note that these tests aren’t currently passing on master either; the
last PR only passed because travis didn’t actually run the tests:
https://travis-ci.org/DefinitelyTyped/DefinitelyTyped/builds/160110579
2016-09-19 23:05:24 -04:00
Simon 895592ef94 fixes model.discriminator() signature fixes #11323 fixes #10878 2016-09-19 20:19:07 -04:00
Ethan Resnick 92b7191938 Allow TwimlMethods with no arguments
E.g. hangup() doesn’t take any arguments.
2016-09-19 19:00:58 -04:00
Ethan Resnick 3d032bd510 Split up TwimlMethod signature
By splitting up the union into an overload, we get much more useful
typing than just (any, any)
2016-09-19 18:59:41 -04:00
Ethan Resnick ae92456e05 In TwimlCallback, Node shouldn't be optional
Because the callback is always called with the Node.

This change is based on the advice here:
https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/decla
ration%20files/Do's%20and%20Don'ts.md#optional-parameters-in-callbacks
2016-09-19 18:58:18 -04:00
Ethan Resnick 6164f95bb1 Fix MiddlewareFunction interface
1. Change client request/response to server request/response, because
the client ones are for when node is acting as a client (making
outgoing requests), whereas here it’s acting as a server. This change
is needed to work with express.

2. Change the `next` argument, because next (in express) is a function
called with 0 or 1 arguments, where that argument can be an any (for
the error). Next is decidedly *not* a function with the
MiddlewareFunction signature.

3. Import express with a capital E, for consistency with Http, since
we’re using it for its namespace.
2016-09-19 18:58:03 -04:00
Ethan Resnick d705c4e9da Add missing webhook() signature 2016-09-19 18:55:03 -04:00
Ethan Resnick e822a596e4 Replace deprecated module keyword 2016-09-19 18:54:46 -04:00
David Poetzsch-Heffter 0a9c6b435c added typings for parse-mockdb 2016-09-20 00:31:42 +02:00
Andy 349b639b35 Merge pull request #10994 from bezreyhan/master
allow tooltip prop of IconButton to be a ReactNode | string
2016-09-19 14:06:56 -07:00
Andy 3c7a051355 Merge pull request #11198 from Tomino2112/master
removeAllListeners parameter should be optional
2016-09-19 12:40:56 -07:00
Marc 6fe6b812cd Merge pull request #2 from seawerst/requirejs
Requirejs
2016-09-19 15:25:11 -04:00
Marc 343c43e3de Merge remote-tracking branch 'refs/remotes/DefinitelyTyped/master' into requirejs 2016-09-19 15:01:13 -04:00
Marc 66c9d1c4ba Fix asked by andy-ms 2016-09-19 14:56:14 -04:00
Andy e3c57dbe79 Merge pull request #11215 from thegaryroberts/patch-1
Update react-router.d.ts
2016-09-19 11:11:33 -07:00
pafflique bb5916e645 Concat second+ parameter can be plain value. 2016-09-19 17:51:12 +03:00
Andy e461330a9a Merge pull request #11311 from MadDeveloper/fix_facebook_sdk
Fix facebook sdk
2016-09-19 07:30:39 -07:00
Andy 9913296340 Merge pull request #11312 from sumit2chauhan/patch-1
There is a typescript build error in this
2016-09-19 07:28:50 -07:00
NoHomey 26bb1f5bc5 Updating jest.d.ts to be close to what @jwbay requested 2016-09-19 17:14:45 +03:00
sumit2chauhan a03bb7d3be There is a typescript build error in this
The property " component? " in IModalSettings is repeated.
2016-09-19 14:35:01 +05:30
Julien Sergent 4f0bb211cf Update facebook-js-sdk-tests.ts 2016-09-19 10:50:50 +02:00
TonyYang 012b7f1072 [node] Format test definition (#11308)
* Format test definition in v4.x

* Format test definition in v6.x
2016-09-19 16:24:01 +09:00
doronbrikman 150546f73b Update enzyme.d.ts (#11252)
add render method to ReactWrapper
2016-09-19 16:23:35 +09:00
TonyYang b36bf17397 [pug] Create pug definition (#11258)
* Create pug.d.ts

* Create pug-test.ts

* Add project in comments

* Rename
2016-09-19 16:23:24 +09:00
Denis 4c7b1220e0 Implemented shapefile definition (#11307)
* Implement shapefile definition

* Implement shapefile definition

* Shapefile remove Promise reference
2016-09-19 16:22:08 +09:00
Mitchell Wills 1ce244c131 Correct the Angular Material IToastService updateContent typings (#11305) 2016-09-19 16:19:32 +09:00
Jay Anslow 4fd81af1e8 Use bluebird@3 instead of @2 (#11299) 2016-09-19 16:18:23 +09:00
Denis 6fbe7a4242 Implemented Proj4 definition (#11303)
* Implement Proj4 definition

* Add proj4 tests
2016-09-19 16:18:09 +09:00
TonyYang e0e86e3535 [express] http.createServer can take express app (#11292)
* Create pug-test.ts

* Test http.createServer can take express app

* Delete this
2016-09-19 16:16:55 +09:00
iskandersierra cf6fef6e8a Added typings for change-emitter@0.1.2 (#11295) 2016-09-19 16:14:34 +09:00
Stefan Dobrev 549f6a3fa9 Add svgIcon to MuiTheme (#11293)
https://github.com/callemall/material-ui/blob/master/src/styles/getMuiTheme.js#L249-L251
2016-09-19 16:09:32 +09:00
Alejandro Sánchez 1adaa22d7a [WIP] Add type definitions for Leaflet 1.0 (#11165)
* Rename leaflet.d.ts to leaflet-0.7.d.ts

* Defined several important interfaces and the skeleton of some others

* Started adding tests

* Added more interfaces, factory methods and tests

* Implemented other interfaces and nested namespaces

* Added more types
2016-09-19 16:07:25 +09:00
Milan Burda 4b82641492 Update to Electron 1.3.6 (#11229) 2016-09-19 15:56:50 +09:00
Borislav Zhivkov ee9a615939 Add angular-feature-flags definitions (#11283) 2016-09-19 15:51:04 +09:00
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