Commit Graph

50116 Commits

Author SHA1 Message Date
Mike North
2c67d74e1e [ember] refactor @ember/test types into their own module (#28804)
fixes https://github.com/typed-ember/ember-cli-typescript/issues/278
2018-09-14 10:24:21 -07:00
Mike North
1da1401566 [ember] refactor @ember/error out into a separate module (#28792)
* [ember] refactor @ember/error out into a seperate module
fixes: https://github.com/typed-ember/ember-cli-typescript/issues/269

* [@ember/error] enable all tslint rules
2018-09-14 10:24:01 -07:00
Mike North
614492e26b [ember] refactor @ember/string types into their own package (#28791)
* [@types/ember__string] refactor types out of @types/ember, add additional tests

* [@ember/string] enable all TSLint rules
2018-09-14 10:23:36 -07:00
Dyma
c43bcd9fd7 Add findByIdAndDelete() method (#28893)
findByIdAndDelete() recommended method is missing.

Mongoose docs:
https://mongoosejs.com/docs/api.html#model_Model.findByIdAndDelete

MongoDb docs:
https://docs.mongodb.com/manual/reference/method/db.collection.findOneAndDelete/
2018-09-14 10:22:28 -07:00
Daniel Byrne
a3b7777878 adds typings for the 'bloom-filter' package (#28838) 2018-09-14 10:18:51 -07:00
Martynas Kadiša
58451091ce [react-window] add typings (#28824)
* Add react-window types and tests

* bump ts version to match react ts version

* Use github project url
2018-09-14 10:16:25 -07:00
Rich Armstrong
9d99876185 chart.js - Add missing animation properties (#28730)
Added animateRotate and animateScale (both boolean) to ChartAnimationOptions. These apply only to doughnut/pie and polar-area charts
2018-09-14 09:58:56 -07:00
mickaelw
b59997949e Added type definitions for React Navigation (#28742) 2018-09-14 09:57:07 -07:00
Mike North
0c694b22fb [ember] refactor @ember/polyfills types into their own package (#28797)
* [ember] refactor @ember/polyfills into its own module
fixes https://github.com/typed-ember/ember-cli-typescript/issues/273

* [ember] delay activation of some tests until after future improvements to Ember.assign/merge
2018-09-14 09:56:14 -07:00
Robin van Tienhoven
92abd0cd3d StripeJS Typings fix (Typings were not imported correctly) (#28854)
* Quick fix

+ Element was not included so the native Element was used instead. This caused a warning when trying to use the StripeJS functions with the StripeJS Element object

* Element fix

+ Renamed Element to StripeElement in order to avoid confusion with the native 'Element' object.
+ Fixed unit test where the Native Element was used instead of the 'StripeElement' object
2018-09-14 09:52:53 -07:00
Kanitkorn Sujautra
bb215703f2 [react-intl] Add missing children props to formatting components (#28738)
Ref:
https://github.com/yahoo/react-intl/wiki/Components#date-formatting-components
https://github.com/yahoo/react-intl/wiki/Components#number-formatting-components
2018-09-14 09:52:00 -07:00
Renaud Chaput
dde8922b4c redux-little-routers: remove typings, they are now upstream (#28681)
See https://github.com/FormidableLabs/redux-little-router/pull/269
2018-09-14 09:48:37 -07:00
aldentaylor
8f134e436f feat(jest-when): types for jest-when at https://github.com/timkindberg/jest-when (#28773) 2018-09-14 09:48:11 -07:00
Mike North
b49e87cd19 [ember] @ember/array types refactored into their own package (#28836) 2018-09-14 09:45:37 -07:00
Daniel Byrne
7050908e2f changes type of key from ReadonlyArray<number> to string (#28823) 2018-09-14 09:36:27 -07:00
Vinicius Carvalho
fcfdccd4c3 Update index.d.ts (#28575)
According #28574, the FakerStatic interface must have optional parameters in the system.
2018-09-14 09:36:07 -07:00
Daniel Byrne
6eafee412d adds typings for the 'memdown' package (#28832) 2018-09-14 09:33:08 -07:00
Mike North
211edbdab6 [ember] refactor @ember/application types into their own package (#28846)
* [ember] failing test - relax ObserverMethod property name arg

* [ember] relax ObserverMethod property name arg

* [ember] @ember/application types refactored into their own package
2018-09-14 09:32:21 -07:00
Michael Nahkies
6e1f5ed8f7 Create type definitions for native-toast@2.0 (#28855)
* create type definitions for native-toast@2.0

* fix lint / write as external module
2018-09-14 09:31:49 -07:00
Daniel Byrne
5f3d6a6b43 adds typings for the elliptic package (#28865) 2018-09-14 09:23:58 -07:00
Artem
0a509d74e6 screenfull: Fix general type. (#28815) 2018-09-14 09:22:20 -07:00
Gerhard Stöbich
8722b52e26 [parity-poe] Fix tests for ts@next (#28831) 2018-09-14 09:21:12 -07:00
Gerhard Stöbich
26bc464923 [parity-pmr] Fix tests for ts@next (#28833) 2018-09-14 09:11:39 -07:00
Sean O'Neill
8ce5ce4c30 add dateIcon type (#28862) 2018-09-14 09:10:35 -07:00
James Ide
82a2833b4e [react-native] Fix declarations related to prop types e.g. requireNativeComponent (#28871)
Fixes `requireNativeComponent`, which was conflating the type of PropTypes maps with the type of prop maps. That is, these are not of the same type: `{ x: PropTypes.string }` and `{ x: "hello" }`.

Also fixes the type of the `ViewPropTypes` object. It is a map of PropTypes, not a single PropType. Additionally, made the types of the other PropType exports more precise instead of `PropType.any`.

Please fill in this template.

- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

If changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: **N/A** -- these are fixes
- [x] Increase the version number in the header if appropriate. **N/A**
- [x] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`. **N/A**
2018-09-14 09:10:16 -07:00
meikidd
b4143a7b47 fix: @types/video.js has no default export (#28776)
* fix: @types/video.js has no default export

related #28418

* change video.js version back to 7.2
2018-09-14 09:08:17 -07:00
Mike North
d6387166ee [ember] tests and type fixes for DataAdapter & ContainerDebugAdapter (#28801)
* [ember] fix: runInDebug should return void
fixes https://github.com/typed-ember/ember-cli-typescript/issues/284

* [ember] tests for DataAdapter and ContainerDebugAdapter

* [ember] more specific observable handlers in tests
2018-09-14 09:07:09 -07:00
Mike North
5dc54928ef [ember] refactor @ember/debug types into their own package (#28817)
* [ember] fix: runInDebug should return void
fixes https://github.com/typed-ember/ember-cli-typescript/issues/284

* [ember] tests for DataAdapter and ContainerDebugAdapter

* [ember] more specific observable handlers in tests

* [ember] refactor @ember/debug types into their own package
2018-09-14 09:06:43 -07:00
Dilip
a9c13cdfe7 [three] Added 'context' to WebGLRendererParameters for using an existing WebGLRenderingContext in new WebGLRenderer as seen in THREE.JS docs (#28856)
* Added 'context' to WebGLRendererParameters in three

* Added WebGLRenderingContext test
2018-09-14 09:06:13 -07:00
Sibelius Seraphini
69768dc0c3 feat(kue): add missing workerId and _error to kue Job, fix #28760 (#28762)
* feat(kue): add missing workerId and _error to kue Job, fix #28760

* use private for _error
2018-09-14 09:05:35 -07:00
Piotr Roszatycki
1695c608fd smtp-server: callback for close doesn't have arguments (#28799)
* smtp-server: minor tweaks for jsdoc

* smtp-server: callback foe `close` doesn't have arguments

* smtp-server: 2nd callback argument for `onAuth` handler is optional

* smtp-server: tests for handlers in subclass

* smtp-server: more EventEmitter methods
2018-09-14 09:04:59 -07:00
Daniel Byrne
aedacdd3fa updates some types in (#28869) 2018-09-14 09:04:22 -07:00
ByungHyun Jung
56eaecc401 Make @types/next Document generic for defining custom props. (#28429)
Please fill in this template.

- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [ ] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

Select one of these and delete the others:

If changing an existing definition:
- [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <<url here>>
- [x] Increase the version number in the header if appropriate.
- [x] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.

I'm not familiar with writing these kind of testing code, so I didn't update that. Give me some guidance if necessary. Thanks.
2018-09-13 23:22:54 -07:00
Mine Starks
93d00f3481 Merge pull request #28408 from iRoachie/plur
Add definitions for plur
2018-09-13 18:30:23 -07:00
Kyle Roach
a0a1efca92 Add definitions for plur 2018-09-13 21:11:28 -04:00
Henrik Raitasola
35640ad778 [@types/validator] Add no_symbols as option (#28600)
* Add no_symbols as option

* Add fixes
2018-09-13 16:51:50 -07:00
Benjamin Lichtman
1221ff85a0 Add PromiseLike-compatible type for then (#28866) 2018-09-13 16:51:00 -07:00
Gerhard Stöbich
f6466f9257 [grasp] Fix tests for ts@next (#28829) 2018-09-13 16:40:59 -07:00
Piotr Roszatycki
72d7c0bcf1 nodemailer: callback for connect has err argument (#28796)
`connect` method has an `err` as an optional first argument.

More callbacks definition was fixed: if it is just a first and only argument then is optional (`undefined` rather than `null)

- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

If changing an existing definition:
- [x] Increase the version number in the header if appropriate.
- [x] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.
2018-09-13 16:40:38 -07:00
Mike North
58d0fd4974 [ember] narrow types for Ember.typeOf (#28691)
* [ember] narrow types for Ember.typeOf

* [ember] typeOf without any conditional types

* [ember] fix: typeOf zero-argument case

* [ember] use mapping type for Ember.typeOf
2018-09-13 16:40:15 -07:00
Jan Doležel
d61b17ac8c [react-sortable-tree] Fix TreeItem and ExtendedNodeData definition (#28752)
* [react-sortable-tree] Fix TreeItem and ExtendedNodeData definition

* Updated path types to match return type of getNodeKey

* Bumped version
2018-09-13 16:36:53 -07:00
Gerhard Stöbich
459eb2f30e [parity-pmd] Fix tests for ts@next (#28830) 2018-09-13 16:33:26 -07:00
John Reilly
c2e4b83961 react-router params can only have a string value (#1) (#28868)
* react-router params can only have a string value

* Update index.d.ts

* Use mapped types and make the type optional

* Fix tests

* trailing whitespace
2018-09-13 22:35:11 +01:00
Johan Palmfjord
972309a84a [jsdom]: Add missing constructor options (#28786)
Please fill in this template.

- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

If changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://github.com/jsdom/jsdom/blob/master/lib/api.js#L286-L292
- [ ] ~~Increase the version number in the header if appropriate.~~
- [ ] ~~If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.~~
2018-09-13 13:17:29 -07:00
Youssef GHOUBACH
a25d5975ef upgrade bitcoin-js to v4 (#28818) 2018-09-13 13:16:51 -07:00
Mohsen Azimi
1d1dc5e817 [passport-saml] Replace {} with any (#28459)
* [passport-saml] Replace `{}` with `any`

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts
2018-09-13 13:16:18 -07:00
Gerhard Stöbich
f8a241c6b8 [create-subscription] Fix tests for ts@next (#28828)
- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

Fix tests for typescript@next which reports errors on a differnt line. As tests are executed also with older typescript versions the only solution is to move everything on one line.

No change in exported type definitions.

Refs: #28708
2018-09-13 13:13:55 -07:00
Anatoli Papirovski
ee59ccab23 [react-redux] Correctly infer prop types from wrapped component (#28189)
* [react-redux] correctly infer prop types from wrapped component

Make sure the inferred props include the defaultProps and propTypes
resolutions by using JSX.LibraryManagedAttributes.

* fixup

* fixup

* adjust the comment
2018-09-13 13:12:26 -07:00
Oliver Hookins
24f4e6d721 Add AWS Lambda CloudFront Event origin fields. (#28675)
* Add AWS Lambda CloudFront Event origin fields.

* Add tests for the different kinds of Lambda CloudFrontRequests.
2018-09-13 13:11:40 -07:00
Florian Keller
46e3564b14 fix(helmet): Add dashed and missing directives (#28789) 2018-09-13 13:08:40 -07:00