Commit Graph
50092 Commits
Author SHA1 Message Date
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
Mike Seese 0e2aeeb4d0 [web3] Fix Arguments to Match Web3 1.0 Docs (#28807)
* Update utils.soliditySha3 argument types per web3@1.0 documentation

See https://web3js.readthedocs.io/en/1.0/web3-utils.html#soliditysha3
for details

* Add `position` to getStorageAt

See https://web3js.readthedocs.io/en/1.0/web3-eth.html#getstorageat

* Add web3 getStorageAt and soliditySha3 tests

* Reuse contractAddress variable in web3 test
2018-09-13 12:53:31 -07:00
Mathias Remshardt 89bf834e02 * Adds onBlur and onFocus event handlers to Input component (#28724) 2018-09-13 12:52:34 -07:00
Greg Miller b03b25c223 [three] fix gltf-exporter (#28743)
* fix-gltf-exporter-import

* add test

* remove formatting changes from auto-format
2018-09-13 12:50:10 -07:00
Mike North 8ec73d20ae [ember] refine Ember.assign and Ember.merge types (#28690)
* ember - refine Ember.assign and Ember.merge types

* [ember] merge & assign - more test cases and reasonable type constraints for Mix

* kick CI
2018-09-13 12:48:55 -07:00
Fernando Alex Helwanger 63c9cf4b94 [expo] Add missing PictureOptions props (#28860) 2018-09-13 12:35:56 -07:00
Daniel Byrne 3c5bd3938d corrects the input/output type of encode (#28822) 2018-09-13 12:33:21 -07:00
Daniel Byrne cb47b76131 changes the type of next to be a Promise<any> in koa-convert (#28826)
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:
- [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <<url here>>
- [ ] 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" }`.

The 'Koa.Middleware' format is `(ctx: Context, next: () => Promise<any>)` so I've updated the accepted type here to match up.
2018-09-13 12:31:58 -07:00
Daniel Byrne 142b2f5a1b one final update to env-paths (#28819) 2018-09-13 12:25:51 -07:00
Trevor Behlman ec674c55ce [three] add newly required argument (#28765)
r92 removed the ability to call Color.getHSL() without passing a target object to copy the results to.  The `three` type package currently targets r92 but is missing a definition for this argument.

- [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).

- [x] Provide a URL to documentation or source code which provides context for the suggested changes:
    - https://threejs.org/docs/index.html#api/en/math/Color.getHSL
    - https://github.com/mrdoob/three.js/blob/r92/src/math/Color.js#L356
- [ ] 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 09:57:40 -07:00
Mike North 992b5b5f11 [ember] Refactor some private types into ghost modules (#28735)
* [ember] refactor some private types into ghost modules

* [ember] additional tests for low-level CP and Observable types

* [ember] fix: add tests/core-object
2018-09-13 09:56:56 -07:00
Mike North 856deff048 [ember] refactor @ember/component types into their own package (#28845)
* [ember] failing test - relax ObserverMethod property name arg

* [ember] relax ObserverMethod property name arg

* [ember] @ember/component types refactored into their own package
2018-09-13 09:55:31 -07:00
Mike North a87e9d3ab8 [ember] refactor @ember/engine types into their own package (#28847)
* [ember] failing test - relax ObserverMethod property name arg

* [ember] relax ObserverMethod property name arg

* [ember] @ember/engine types refactored into their own package
2018-09-13 09:55:01 -07:00
Mike North 488594c9b3 [ember] refactor @ember/routing types into their own package (#28844)
* [ember] failing test - relax ObserverMethod property name arg

* [ember] relax ObserverMethod property name arg

* [ember] @ember/routing types refactored into their own package

* Update index.d.ts
2018-09-13 09:52:49 -07:00
Mike North 2609e62c2d [ember] refactor @ember/service out into a separate module (#28843)
* [ember] failing test - relax ObserverMethod property name arg

* [ember] relax ObserverMethod property name arg

* [ember] @ember/service types refactored into their own package
2018-09-13 09:52:16 -07:00
Mike North 3765c60b75 [ember] refactor @ember/controller out into a separate module (#28842)
* [ember] failing test - relax ObserverMethod property name arg

* [ember] relax ObserverMethod property name arg

* [ember] @ember/controller types refactored into their own package
2018-09-13 09:51:45 -07:00
Jiayu Liu 8b4c416e16 [weixin-app] add more system info entries (#28840) 2018-09-13 09:50:32 -07:00
Mike North 52636bbb16 [ember] relax ObserverMethod property name arg (#28839)
* [ember] failing test - relax ObserverMethod property name arg

* [ember] relax ObserverMethod property name arg
2018-09-13 09:49:42 -07:00
Chris Redekop 49e8daef6a [aws-lambda] Fix challengeMetadata typos in cognito custom challenge (#28834)
* Fix challengeMetadata typos

* Fix type of challengeAnswer
2018-09-13 09:48:08 -07:00
Daniel Byrne ba72fc6a04 updates abstract-leveldown to return its 'unnecessary generics' (#28827) 2018-09-13 09:42:07 -07:00
Armando Aguirre 5f7be1fd62 Merge pull request #28794 from mike-north/react-tf-tests
[react-table-filter] fixes for build errors on DefinitelyTyped/master
2018-09-12 10:33:39 -07:00
Mike North 9f0266511c [react-table-filter] build fixes 2018-09-11 10:43:39 -07:00
Armando Aguirre 6d9d1c7a92 Moved react-table-filter inside types folder (#28759)
* Moved react-table-filder inside types folder

* Moved react-table-filder inside types folder
2018-09-11 09:49:40 -07:00
David Pett bf29450ff9 add 'sketch' and 'vr' as platforms to react-primitives (#28674)
* add 'sketch' and 'vr' as platforms to react-primitives

* Update index.d.ts

* fixed lint warnings

* added test
2018-09-11 08:29:17 -07:00
Florian Barbare b883a3573a @types/payment Add formatCardNumber in the types (#28669)
I wanna use the `formatCardNumber` function standalone but it is not defined in the types yet, so there we go.
2018-09-11 08:27:22 -07:00