Commit Graph

50085 Commits

Author SHA1 Message Date
AlexStacker
1335935bc8 Add test examples 2018-09-14 21:28:41 +08:00
AlexStacker
b347533547 Update missing parameter types 2018-09-14 11:25:12 +08: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
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