Commit Graph
51559 Commits
Author SHA1 Message Date
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
AlexStacker 1335935bc8 Add test examples 2018-09-14 21:28:41 +08:00
Leonard Thieu 6912302128 [jquery] Fix region folding for VS Code. 2018-09-14 08:16:42 -04:00
Leonard Thieu 3aa7d5edd1 [jquery] Remove usages of const enum.
`Mouse` and `Key` were provided for convenience. Their presence is problematic though as they're not actually part of the jQuery API, cause the `JQuery` namespace to become a value, and doesn't work with the `isolatedModules` option.
2018-09-14 08:16:35 -04:00
Leonard Thieu fec4350b0d Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped into jquery/promise-compatibility 2018-09-14 07:30:40 -04:00
Rich f57f4b57c7 Slickgrid: DataView<T>.mapRowsToIds expects number[], not T[] 2018-09-14 11:43:41 +01:00
gillchristian 7593e911bf Update definitions for react-router/v3 2018-09-14 11:46:58 +02: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
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