Commit Graph

50154 Commits

Author SHA1 Message Date
Piotr Roszatycki
a649bec809 node: stream.finished: err is optional 2018-09-17 14:28:43 +02:00
Piotr Roszatycki
f4b9e5acaa node: stream.finished function 2018-09-17 14:28:43 +02:00
buaban
428a996d6b Add types definition for find-process (#28877)
* Add types definition for find-process

* Add new line at EOF

* Compile TS LINT

* 1. change import syntax.  2. Remove comments.
2018-09-17 01:30:49 -07:00
Guiheux Steven
b9f34446d5 feat: add missing methods on dagerD3 and render (#28755)
* feat: add missing methods on dagerD3 and render

* add test
2018-09-17 01:14:24 -07:00
Mike North
da9c280be5 [ember] enable tests that were waiting for other changes to be merged (#28899) 2018-09-17 01:11:43 -07:00
Mike North
559078d30d [ember] refactor @ember/object types into their own package (#28835)
* [ember] @ember/object types refactored into their own package

* Update create-negative.ts
2018-09-17 01:08:12 -07:00
Paul Lessing
5a12a3f10f Add types for web-push (#28910) 2018-09-17 01:06:02 -07:00
Max
3fdd79cae9 [jwt-then] Add Types (#28928)
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).
- [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-17 01:04:55 -07:00
zackzeno
84d10599aa [lovefield] Replace Object with object (#28757)
This is my first contribution, so I'm not sure if I missed something. I plan to make a more detailed edit in the future that replaces object with true generics, but it's not immediately obvious how to do that.

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 changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes
- [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-17 01:02:49 -07:00
Brian Strobach
0ef18e16fc Return type fixes for euclidean distance and color difference functions. (#28758)
Looks like these functions were accidentally typed as returning Color. Updated to return number type.
2018-09-17 01:02:01 -07:00
Andres Rosero
3523c68c52 @types/google-map-react - optional elementType and featureType of a MapTypeStyle (#28766)
* optional elementType and featureType of a MapTypeStyle

* little fix
2018-09-17 01:01:23 -07:00
BradleyHill
4efc019933 Add definitions for Object.borderDashArray & Text.charSpacing. Travis never runs. Re-branch. (#28787) 2018-09-17 00:59:59 -07:00
Mike North
d49861a134 [ember] remove types for non-public APIs (#28917)
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://www.emberjs.com/api/ember/3.4/modules/@ember%2Fmap
	- https://www.emberjs.com/api/ember/3.4/modules/@ember%2Finstrumentation
	- https://www.emberjs.com/api/ember/3.4/modules/@ember%2Fenumerable
 	- f73d8440d1/packages/%40ember/-internals/utils/lib/make-array.ts (L30)
- [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-17 00:50:47 -07:00
Mike North
6c340ade74 [ember] relax types around Ember.set & setProperties (#28915)
- [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://www.emberjs.com/api/ember/3.4/functions/@ember%2Fobject/set
- [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" }`.

---
- Fixes https://github.com/typed-ember/ember-cli-typescript/issues/308
- Workaround due to breaking change https://github.com/Microsoft/TypeScript/issues/26120
- Would much much cleaner w/ a fix for https://github.com/Microsoft/TypeScript/issues/27014
2018-09-17 00:48:34 -07:00
various89
8062de22e4 adds ClientSession to SaveOptions mongoose (#28880)
* adds session to SaveOptions

* removes redundant create method
2018-09-17 00:46:42 -07:00
mabidina
2d6f7180c4 fix fluent-ffmpeg logger interface, no warning method but warn exists (#28885)
Even if documentation says it, there is no `warning` methods for Logger object in fluent-ffmpeg 2.1.2
It is a `warn `method.
see  https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/blob/v2.1.2/lib/fluent-ffmpeg.js [lign 76]
2018-09-17 00:44:50 -07:00
Mike North
e79bb7f390 [@ember/string] Move types from ember (#28922)
* [ember] no longer re-create Handlebars namespace
- Fixes https://github.com/typed-ember/ember-cli-typescript/issues/309

* [ember] move @ember/string types to ember__string
Fixes https://github.com/typed-ember/ember-cli-typescript/issues/294
2018-09-17 00:42:27 -07:00
Ankur Oberoi
696e5f2e10 [passport-oauth2] Allows callbackURL option to be omitted in constructor of OAuth2Strategy (#28907)
* [passport-oauth2] callbackURL is an optional value

The implementation for this OAuth2Strategy handles `callbackURL` being undefined, so this more accurately describes the interface.

* Making at least one test case use no callbackURL
2018-09-17 00:41:54 -07:00
Simon Schick
9061b19a3c types(node): add changes from 10.10 (#28918)
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 changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#2018-09-06-version-10100-current-targos
- [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" }`.

RE: #28708

Lets try this again.
2018-09-17 00:39:14 -07:00
Dyma
7cd6d7398c Node - missing property on IncomingHttpHeaders (#28929)
Missing referer property on IncomingHttpHeaders
see: https://tools.ietf.org/html/rfc4229
2018-09-17 00:38:28 -07:00
James Bromwell
15d979e92a [webpack-dev-server] add tests for Stats, only allow specific strings (#28788)
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 changing an existing definition:
- [X] Provide a URL to documentation or source code which provides context for the suggested changes: https://webpack.js.org/configuration/stats/#stats
- [ ] 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" }`.


Ref #28362
2018-09-17 00:37:38 -07:00
Dyma
f43a4d63c1 Mongoose - pre hook methods update (#28905)
Missing methods for pre hook
2018-09-17 00:35:03 -07:00
Thodoris Greasidis
e869f8ca81 [angular-ui-sortable] Fix test failures caused by TypeScript@next (#28927)
Resolves: #28887
TBH this feels like a regression in TS 3.1.0-dev.20180915
2018-09-17 00:34:22 -07:00
James Messinger
073908ebd9 Type definitions for yargs.middleware() (#28725)
* Type definitions for the .middleware() method

The `.middleware()` method is [documented here](http://yargs.js.org/docs/#api-middlewarecallbacks)

* Updated the version number

* Moved the v11 definition to its own folder (https://github.com/DefinitelyTyped/DefinitelyTyped/pull/28725#pullrequestreview-153566231)

* updated the tsconfig.json for v11

* added an EOF newline
2018-09-17 00:33:43 -07:00
tyfkda
f7738b9678 Fix example script for md5 (#28889)
'md5.d.ts' doesn't exist in the repository, so running md5-test fails.

Stop reading a file just for acquiring `Buffer`,
and create it from array.

----

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 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" }`.~~
2018-09-17 00:33:05 -07:00
Jinesh Shah
91886422ba Fix exports to allow named exports (#28902)
* Fix exports

Fix exports so they can be name for "declaration: true" tsconfigs

* Updated tests

* Update tsconfig.json

* Update tslint.json
2018-09-17 00:32:34 -07:00
tyfkda
e42f933081 Change md5 declaration to accepts Array<number> (#28891)
md5 accepts not only `string | Buffer`,
but also `Array<number>` from the beginning:

https://github.com/pvorb/node-md5/blob/master/md5.js#L19
2018-09-17 00:31:43 -07:00
Stéphane Monnot
373eab6d1c Update definitions for react-vertical-timeline-component (#28909) 2018-09-17 00:31:09 -07:00
tamnguyenvt
5016fdb13a papaparse: Allow to change papa.SCRIPT_PATH (#28932) 2018-09-17 08:29:59 +01:00
Mike North
d9c8fecb5f [ember] addObserver, removeObserver should return functions (#28921)
Fixes https://github.com/typed-ember/ember-cli-typescript/issues/290
2018-09-16 15:00:45 -07:00
Mike North
9a4fd80c8c [@ember/polyfills] Move types from ember (#28923)
https://github.com/typed-ember/ember-cli-typescript/issues/299
2018-09-16 15:00:28 -07:00
Will Garcia
5099333846 @types/joi add dataUri type definition (#28727) 2018-09-14 10:40:52 -07:00
Dario Blanco
c472319d6d twilio-video 2.0.0-beta1 types fix (#28882)
After developing a bit more the production application with the new types, and had the need of using manual local tracks, I discovered a few fixes to be made:

- Two missing functions in `LocalParticipant`: `unpublishTrack` and `unpublishTracks`. See [LocalParticipant documentation](https://media.twiliocdn.com/sdk/js/video/releases/2.0.0-beta1/docs/LocalParticipant.html).
- When creating a single track using `createLocalVideoTrack` or `createLocalAudioTrack`, the documentation defines a non optional `logLevel`, but the examples don't specify it and the code works without it. See [Examples](https://media.twiliocdn.com/sdk/js/video/releases/2.0.0-beta1/docs/global.html#createLocalVideoTrack__anchor). Therefore, `logLevel` is optional in `CreateLocalTrackOptions` as well (and documented in the code).
- `CreateLocalTrackOptions` should extend `MediaTrackConstraints`. Currently, it will complain when writing our own video and audio constraints. [CreateLocalTrackOptions](https://media.twiliocdn.com/sdk/js/video/releases/2.0.0-beta1/docs/global.html#CreateLocalTrackOptions)

- [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://media.twiliocdn.com/sdk/js/video/releases/2.0.0-beta1/docs
- [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-14 10:39:32 -07:00
Norbert Bartos
5a86a73eec [Enzyme] Add simulateError method (#28698)
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 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" }`.
2018-09-14 10:38:36 -07:00
Daniel Byrne
e50bb9f556 adds typings for the 'vorpal' package (#28870) 2018-09-14 10:36:43 -07:00
Larry1123
192edcd269 Extend screenshot encoding support (#28713)
Overloaded the screenshot methods to define the return type based on what kind of encoding is used.
Edited the test and made sure normal ScreenshotOptions worked as normal still, the two new extended interfaces can be used for objects to pass in also but did not add test for that directly, should be handled right with the current test cases.
2018-09-14 10:34:19 -07:00
Sean
21d31fd064 Replace JSX.Element with React.ComponentType (#28706)
Is meant to be `React.ComponentType` (see https://github.com/storybooks/storybook/tree/master/addons/info).
`JSX.Element` is the type of an instance of a component (e.g. `<MyComponent />`), while `React.ComponentType` is the type of the component class itself (e.g. `MyComponent`).
2018-09-14 10:28:13 -07:00
Mike North
38b392f591 [ember] copy @ember/runloop types into their own module (#28805) 2018-09-14 10:24:46 -07:00
Mike North
2c67d74e1e [ember] refactor @ember/test types into their own module (#28804)
fixes https://github.com/typed-ember/ember-cli-typescript/issues/278
2018-09-14 10:24:21 -07:00
Mike North
1da1401566 [ember] refactor @ember/error out into a separate module (#28792)
* [ember] refactor @ember/error out into a seperate module
fixes: https://github.com/typed-ember/ember-cli-typescript/issues/269

* [@ember/error] enable all tslint rules
2018-09-14 10:24:01 -07:00
Mike North
614492e26b [ember] refactor @ember/string types into their own package (#28791)
* [@types/ember__string] refactor types out of @types/ember, add additional tests

* [@ember/string] enable all TSLint rules
2018-09-14 10:23:36 -07:00
Dyma
c43bcd9fd7 Add findByIdAndDelete() method (#28893)
findByIdAndDelete() recommended method is missing.

Mongoose docs:
https://mongoosejs.com/docs/api.html#model_Model.findByIdAndDelete

MongoDb docs:
https://docs.mongodb.com/manual/reference/method/db.collection.findOneAndDelete/
2018-09-14 10:22:28 -07:00
Daniel Byrne
a3b7777878 adds typings for the 'bloom-filter' package (#28838) 2018-09-14 10:18:51 -07:00
Martynas Kadiša
58451091ce [react-window] add typings (#28824)
* Add react-window types and tests

* bump ts version to match react ts version

* Use github project url
2018-09-14 10:16:25 -07:00
Rich Armstrong
9d99876185 chart.js - Add missing animation properties (#28730)
Added animateRotate and animateScale (both boolean) to ChartAnimationOptions. These apply only to doughnut/pie and polar-area charts
2018-09-14 09:58:56 -07:00
mickaelw
b59997949e Added type definitions for React Navigation (#28742) 2018-09-14 09:57:07 -07:00
Mike North
0c694b22fb [ember] refactor @ember/polyfills types into their own package (#28797)
* [ember] refactor @ember/polyfills into its own module
fixes https://github.com/typed-ember/ember-cli-typescript/issues/273

* [ember] delay activation of some tests until after future improvements to Ember.assign/merge
2018-09-14 09:56:14 -07:00
Robin van Tienhoven
92abd0cd3d StripeJS Typings fix (Typings were not imported correctly) (#28854)
* Quick fix

+ Element was not included so the native Element was used instead. This caused a warning when trying to use the StripeJS functions with the StripeJS Element object

* Element fix

+ Renamed Element to StripeElement in order to avoid confusion with the native 'Element' object.
+ Fixed unit test where the Native Element was used instead of the 'StripeElement' object
2018-09-14 09:52:53 -07:00
Kanitkorn Sujautra
bb215703f2 [react-intl] Add missing children props to formatting components (#28738)
Ref:
https://github.com/yahoo/react-intl/wiki/Components#date-formatting-components
https://github.com/yahoo/react-intl/wiki/Components#number-formatting-components
2018-09-14 09:52:00 -07:00
Renaud Chaput
dde8922b4c redux-little-routers: remove typings, they are now upstream (#28681)
See https://github.com/FormidableLabs/redux-little-router/pull/269
2018-09-14 09:48:37 -07:00