Commit Graph

50075 Commits

Author SHA1 Message Date
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
Buck Supergoose
822fafc157 Fix #28598 (#28668)
Allow VRLayer left and right bounds to accept types of number[], Float32Array or null.
2018-09-11 08:26:48 -07:00
Ryokik
f439710d62 Fix default export usage in my definition for react-global-configuration (#28775)
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).

Select one of these and delete the others:

If adding a new definition:
- [ ] The package does not already provide its own types, or cannot have its `.d.ts` files generated via `--declaration`
- [ ] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.
- [ ] Create it with `dts-gen --dt`, not by basing it on an existing project.
- [ ] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, `strictNullChecks`, and `strictFunctionTypes` set to `true`.

If changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: **`react-global-configuration` is not changed. this is fixing mistake of my 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" }`.

If removing a declaration:
- [ ] If a package was never on DefinitelyTyped, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
- [ ] Delete the package's directory.
- [ ] Add it to `notNeededPackages.json`.
2018-09-11 08:24:35 -07:00
Gordey Doronin
c812b16876 [node-resque] Fix to not depend on @types/events npm package. (#28777) 2018-09-11 08:23:03 -07:00
various89
95d036d4b6 adds session and multi-document transactions to mongodb / mongoose (#28745)
* adds sessions and multi-document transactions

* avoid duplicate interfaces
extends options of GridFSBucketWriteStream

* adds type for options paramater of method withSession
2018-09-11 08:20:50 -07:00
Alex Jerabek
a9afdfa97d [office-js] Adding links to Excel conceptual topics and removing "relationship" term (#28771)
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).
2018-09-11 08:19:20 -07:00
Thomas Hasner
960458f95c Remove myself as maintainer (#28772) 2018-09-11 08:16:44 -07:00
Linus Unnebäck
074ace3372 react-navigation: Add params to state property (#28703) 2018-09-11 08:16:19 -07:00
Piotr Roszatycki
65beaf9330 nodemailer: contentTransferEncoding and contentDisposition values (#28780) 2018-09-11 08:16:06 -07:00
Miika Hänninen
a20e687b6d Ramda: accept ReadonlyArray in chain and flatten (#28779)
* Ramda: accept ReadonlyArray<U> in chain

The return value of the `fn` parameter in chain is an input value for
chain, so it should be a looser type than `[]`

* Ramda: accept nested ReadonlyArrays in flatten
2018-09-11 08:14:31 -07:00
Benedict Etzel
648f7536f6 [twitch-ext] Minor fixes and Bits (#28784)
* twitch-ext: Add missing popout flag to client query parameters

* twitch-ext: Add feature flags

* twitch-ext: Add bits
2018-09-11 08:13:27 -07:00
Ben Hodgson
664bd2ccfa [cookie-session] Add missing sameSite type. name value is optional (defaults to session). (#28624) 2018-09-10 19:26:50 -07:00
Mike North
b5a595ff4f [ember] @ember/string prototype extensions, additional tests and fixes (#28695)
* [ember] @ember/string prototype extensions, additional tests and fixes

* [ember] @ember/string w/ prototype extensions - test fixes
2018-09-10 18:48:15 -07:00
Mike North
59f25426d5 [ember] refine types for Ember.tryInvoke (#28693)
* [ember] refine types for Ember.tryInvoke

* [ember] tryInvoke as three function heads
2018-09-10 18:47:45 -07:00
tup1tsa
2a2f49e0d0 definitions for numeric (#28714)
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).

Select one of these and delete the others:

If adding a new definition:
- [x] The package does not already provide its own types, or cannot have its `.d.ts` files generated via `--declaration`
- [x] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.
- [x] Create it with `dts-gen --dt`, not by basing it on an existing project.
- [x] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, `strictNullChecks`, and `strictFunctionTypes` set to `true`.
2018-09-10 18:36:01 -07:00
Daniel Byrne
6b5a69b2ca directory should be optional here (#28659) 2018-09-10 18:30:04 -07:00
Ryokik
a177a87c7d Add type definition for react-native-navbar (#28746) 2018-09-10 17:07:22 -07:00
Alexander Fisher
8a155514f4 Add types for react-lifecycle-component (#28635)
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).

Select one of these and delete the others:

If adding a new definition:
- [x] The package does not already provide its own types, or cannot have its `.d.ts` files generated via `--declaration`
- [x] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.
- [x] Create it with `dts-gen --dt`, not by basing it on an existing project.
- [x] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, `strictNullChecks`, and `strictFunctionTypes` set to `true`.
2018-09-10 17:04:18 -07:00