Commit Graph
57967 Commits
Author SHA1 Message Date
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
AlexStacker b347533547 Update missing parameter types 2018-09-14 11:25:12 +08:00
William LeGate 67e5641370 Updates tab size to 4 spaces 2018-09-13 18:34:37 -07:00
Donam Kim e4060f0683 Remove consecutive blank lines 2018-09-14 11:32:42 +10:00
William LeGate f1f3a403f1 Adds type definitions for 'franc' 2018-09-13 18:32:05 -07:00
Mine Starks 93d00f3481 Merge pull request #28408 from iRoachie/plur
Add definitions for plur
2018-09-13 18:30:23 -07:00
Donam Kim 4787980cf6 Resolve conflict 2018-09-14 11:21:37 +10:00
Kyle Roach a0a1efca92 Add definitions for plur 2018-09-13 21:11:28 -04:00
James Ide 3c4f383e95 [react-native] Add types for devtools modules
Adds type declarations for `parseErrorStack` and `symbolicateStackTrace`, which are used to process caught errors.
2018-09-13 17:56:35 -07:00
James Ide 2543f375d8 [react-native] Declare StyleSheet.setStyleAttributePreprocessor
Added the type declaration and copied the documentation for this static function. The type of the `process` parameter should be `(nextProp: unknown) => unknown` but I stuck with `any` to preserve 2.x compatibility.
2018-09-13 17:47:33 -07:00
mscharlock 39cd8a54cd trying to delete just office runtime 2018-09-13 17:32:08 -07: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
mscharlock 5ef968bffe changing folder name 2018-09-13 14:24:21 -07:00
mscharlock 434617238e Merge branch 'master' of https://github.com/mscharlock/DefinitelyTyped into michelle-officeruntime 2018-09-13 14:20:29 -07:00
mscharlock 5dc7e31dfb updated to functionS 2018-09-13 14:19:53 -07:00
Michelle Scharlock 93b35befe8 Rename custom-function-runtime-tests.ts to custom-functions-runtime-tests.ts 2018-09-13 14:15:39 -07: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
Michelle Scharlock a90d61163c Editing out the other , I thought I'd fixed locally 2018-09-13 13:09:53 -07:00
Florian Keller 46e3564b14 fix(helmet): Add dashed and missing directives (#28789) 2018-09-13 13:08:40 -07:00
Michelle Scharlock 3035265026 editing out , in json 2018-09-13 13:04:02 -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
dmortimer 57e414c81f Subscription type misspelled 2018-09-13 15:53:25 -04:00
Mathias Remshardt 89bf834e02 * Adds onBlur and onFocus event handlers to Input component (#28724) 2018-09-13 12:52:34 -07:00
Michelle Scharlock 15e2f9870c Merge pull request #1 from mscharlock/michelle-officeruntime
Adding Office-Runtime and Custom-Functions-Mapping
2018-09-13 12:51:47 -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
mscharlock 0472a63b4a Merge branch 'michelle-officeruntime' of https://github.com/mscharlock/DefinitelyTyped into michelle-officeruntime 2018-09-13 12:46:57 -07:00
mscharlock 67fdb51a92 changes to office-runtime 2018-09-13 12:46:29 -07:00
Fernando Alex Helwanger 63c9cf4b94 [expo] Add missing PictureOptions props (#28860) 2018-09-13 12:35:56 -07:00
mscharlock 227590b7dd making update to json so it works 2018-09-13 12:34:39 -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
Jason Killian 2c98d42933 export some potentially helpful types; rename a type 2018-09-13 15:29:05 -04:00
Daniel Byrne 142b2f5a1b one final update to env-paths (#28819) 2018-09-13 12:25:51 -07:00
Michelle Scharlock 9a70a86938 fixing indents 2018-09-13 12:21:00 -07:00
Michelle Scharlock 834e29e43e removing tslint comment 2018-09-13 12:19:34 -07:00
Michelle Scharlock abf058fa3f resolving []s 2018-09-13 12:17:58 -07:00
mscharlock 45c4082cf2 adding custom functions mapping test 2018-09-13 11:14:11 -07:00