Commit Graph

50026 Commits

Author SHA1 Message Date
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
Henri Normak
7f376606df feat: add definitions for react-sparklines (#28640) 2018-09-10 17:03:32 -07:00
ly-cultureiq
e4e063b8bd d3.cloud.layout -> d3-cloud (#28650) 2018-09-10 16:59:11 -07:00
bfrengley
c58c60d897 [@types/when] Restore parameterless when.resolve() and allow (#28593)
parameterless when()
2018-09-10 16:52:06 -07:00
S McDowall
b443752450 Add types for koa-requestid (#28676)
Simple interface for the koa-requestid Middleware.

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 16:49:41 -07:00
newraina
7a6975097c add object-keys-mapping (#28664) 2018-09-10 16:49:00 -07:00
Sam Li
a7a32c6740 Add typings for parse5-html-rewriting-stream (#28660)
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 16:48:29 -07:00
Art
3aa09e4e52 Add gulp-sequence types (#28673)
* Add gulp-sequence types

* Reordered definitions

Auto-generated definitions now appear at the bottom
2018-09-10 16:45:09 -07:00
Mike North
ab3385dc52 [@types/ember__utils] refactor types out of @types/ember, more tests (#28680)
* [@types/ember__utils] refactor types out of @types/ember, add additional tests

* fix: enforce strict function types
2018-09-10 16:42:16 -07:00
Gordey Doronin
cbe40f534c Add typings for [node-resque] library. (#28678) 2018-09-10 16:40:42 -07:00
Jonas Heinrich
8c4d561427 Add types for jest-plugin-set (#28712) 2018-09-10 16:38:11 -07:00
Boye Borg
2b9558d869 Type definitions for "typography.js" (#28625)
* autogenerate files

* add strictFunctionTypes

* create type definitions for typography.js

* add type tests

* use pascal case instead of camel case
2018-09-10 16:10:37 -07:00
eduhenke
a60fadd782 Add typings to bip32 (#28607) 2018-09-10 16:10:14 -07:00
pastushenkoy
64eaf72fec Type definitions for "react-currency-formatter" (#28623)
* Type definitions for react-currency-formatter added.

* Format change according to linter

* Added author.
2018-09-10 16:05:59 -07:00
maple
9dc89875c4 Create Type Definitions for google-translate-api (#28589)
* Create Type Definitions for google-translate-api

* Add semicolons to google-translate-api
2018-09-10 16:04:04 -07:00
Dario Blanco
83ab8585ca Add type definitions for twilio-video 2.0 (#28588)
* Create basic twilio-video 2.0 types

* Fix indentation in tests
2018-09-10 16:02:20 -07:00
Cecchi MacNaughton
4203215339 [react-hammerjs]: Update to v1.0 (#28508) 2018-09-10 15:59:45 -07:00
Mick Lawitzke
a6e137333d Corrected interface for Recognizer (#28262)
recognizeWith(), requireFailure(), dropRequireFailure(), dropRecognizeWith():

- Should not be declared twice
- Should accept array of Recognizer, too
2018-09-10 15:59:05 -07:00
ltlombardi
8c7902a782 Add JSDoc to observableArray methods (#28275)
I added JSDoc to all the observableArray methods and fixed some spacing irregularities in the file(extra or missing space)

I'm happy to add JSDoc for all the rest of the methods, but I would like to first know If these are gonna be accepted before doing all the work.

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).
- [ ] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present). 

(tried but failed execute the two above tests. Could not figure it out how to do it.)
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: <<http://knockoutjs.com/documentation/observableArrays.html>>
- [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-10 15:45:41 -07:00
Tim Weißenfels
f38d6d0619 @types/firefox-webext-browser fix for broken enums (#28369)
* @types/firefox-webext-browser was not working with Typescript 2.9 23002

* fixed linting errors

* removed browser._manifest test

* changed expected type to `any`

* fix test (Property '_manifest' does not exist on type 'typeof browser')
2018-09-10 15:42:15 -07:00
Daniel Byrne
b0b93b3957 adds typings for the 'mali-onerror' package (#28570)
- [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 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 15:41:01 -07:00
strongpauly
5f45124e79 react-big-calendar: Allow functions to be used as formats. (#28406)
* Add functions to formats.  Add drag and drop.

* Correct linting.

* Update tests.

* Remove drag and drop as I don't have the time to figure out how to do that properly.

* Restore typescript version.
2018-09-10 15:40:08 -07:00
Fouad Chamoun
78a53765b5 [@types/moment-timezone] Fix return type of tz function in Moment interface (#28453)
Unless moment.Moment is specified, IDEs think the function's return type is the Moment interface that contains the function.

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>>
- [ ] 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-10 15:39:12 -07:00
Bret Copeland
e37f8ccf0b Add HeadingPitchRoll type to Cesium (#28462) 2018-09-10 15:38:51 -07:00
Ihor Chulinda
bf834d9c79 feat(styled-components): ability to define theme without creating wraper (#28590)
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`.)~~ _doesn't seem to be required in this case_
- [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://github.com/styled-components/styled-components/pull/1895
- [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-10 15:24:42 -07:00
atesbana
78a24ac208 Update index.d.ts (#28605) 2018-09-10 15:23:31 -07:00
Kiwi
2884e78a3a Use recommended definition for Omit (#28613) 2018-09-10 15:18:01 -07:00
Pablo Varela
ce00e9b8de Export EditorChangeType for draft-js (#28620) 2018-09-10 15:14:52 -07:00
sgotre
2ba7a343a6 [@types/video.js] Add methods seeking() & seekable() (#28632)
* [@types/video.js] Add methods seeking() & seekable()

Methods according to video.js documentation 
https://docs.videojs.com/player

* fix codestyle

* code style
2018-09-10 15:14:16 -07:00
prabodht
493073a4f0 [reactstrap] Added Typings for UncontrolledCollapse (#28638) 2018-09-10 15:13:34 -07:00
Mike North
9e32fc7a79 [@types/ember] - Fix several "empty check" function zero-argument cases (#28686)
* fix: allow Ember.typeOf zero-argument case

Fixes: https://github.com/typed-ember/ember-cli-typescript/issues/260

* fix: remove outdated Ember.String.fmt

Fixes: https://github.com/typed-ember/ember-cli-typescript/issues/280

* fix: allow zero-argument usage of Ember.isBlank, .isEmpty, .isPresent and .isNone

Fixes https://github.com/typed-ember/ember-cli-typescript/issues/258
Fixes https://github.com/typed-ember/ember-cli-typescript/issues/255
Fixes https://github.com/typed-ember/ember-cli-typescript/issues/256
Fixes https://github.com/typed-ember/ember-cli-typescript/issues/254
2018-09-10 14:58:51 -07:00
Tim Mensch
0877f1647f feathersjs__feathers: Add missing members and docs to HookContext (#28612)
* Add missing members and document HookContext

* Add optional statusCode and dispatch values to HookContext.
* Add docs to HookContext.
* Fix tslint.json to ignore file name casing (the existing test file wasn't passing).
* Add tests.

* Add readonly and make some members non-optional

* Several properties are readonly. They're marked as such in TypeScript now.
* Those types are also not optional. Nor is `params`. So optional flags were removed.
2018-09-10 14:57:47 -07:00
Asgeir Sognefest
961bf53bf1 Fix typo in web3 (#28645)
Just updated "web3.ssh" to "web3.shh".
2018-09-10 14:57:04 -07:00
WillGibson
f5aa57dcab Update sanitize-html tests to cover with & without parser options (#28682)
See https://github.com/punkave/sanitize-html/issues/248#issuecomment-418859354 for context

Re: "Increase the version number in the header if appropriate." My brain is not able to figure out what that means.

- [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: <<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-10 14:56:08 -07:00
Jinesh Shah
a7201a4a4b Added missing attributes (#28687)
Please fill in this template.

- [ ] Use a meaningful title for the pull request. Include the name of the package modified.
- [ ] Test the change in your own code. (Compile and run.)
- [ ] Add or edit tests to reflect the change. (Run with `npm test`.)
- [ ] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [ ] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [ ] 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:
- [ ] 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" }`.

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-10 14:55:33 -07:00
Pierre Buyle
7c1ab4c1e9 Cursor's batchSize is optional in aggregate (#28710)
The `batchSize` property of the `cursor` option in `Collection.aggregate` is optional.
2018-09-10 14:53:20 -07:00
Leon Machens
e6eb2177e0 fix(meteor): fix server-render renderIntoElementById (#28717)
* fix(meteor): fix server-render renderIntoElementById

* add tests

* add to header
2018-09-10 14:52:34 -07:00
Sander de Waal
b0ff189fbb ftpd typings: error and result can both be undefined for readdir, open, stat in FtpFileSystem. (#28707)
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: 

```
import * as fs from "fs";

fs.readdir("./non-existing-dir", (error, files) => {
	// Will print "error: ..."
	console.log("error: ", error);
	// Will print "files: undefined"
	console.log("files: ", files);
});
fs.readdir("./existing-dir", (error, files) => {
	// Will print "error: null"
	console.log("error: ", error);
	// Will print "files: ..."
	console.log("files: ", files);
});
```

- [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-10 14:51:48 -07:00
Hyunyoung Cho
c7e5d39459 Fix: missing passReqToCallback property for passport-naver (#28723) 2018-09-10 14:49:59 -07:00
Hyunyoung Cho
36ee07bd00 Fix: missing passReqToCallback for passport-kakao (#28722)
* Fix: missing passReqToCallback property for passport-kakao

* Fix: only major.minor version allowed
2018-09-10 14:48:37 -07:00
Paul
37b5c6a8e4 Better describe A-Frame using imports. Remove namespaces. (#28661)
This update removes the usage of namespaces in an effort to just be able to use A-Frame directly from an import.

These types are based on [this branch](576e4557b1/%40types) of work in my [a-frame experiements](https://github.com/devpaul/aframe-experiments) repo. Please take a look over there to see more complete usage and examples.
2018-09-10 14:48:06 -07:00
Sean Zhu
2b62080d62 [quill] getSelection can return undefined (#28736) 2018-09-10 14:46:21 -07:00
angela-1
6044dd7c47 add family option to mongodb SocketOptions (#28748)
* add family option to SocketOptions.

* give the family value of mongodb type SocketOptions.
2018-09-10 14:44:00 -07:00
Bradley Odell
a51609a3eb Updated "delaunator" typings to version 2.0+ (#28665)
* Updated "delaunator" typings to version 2.0+

* Added "d3-delaunay" types for version 4.1.
2018-09-10 14:43:30 -07:00
Matt R. Wilson
2cbd45cb2a [@types/knex] Update ChainableInterface. (#28716)
Fixes #28679.

As I [noted in a comment](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/28679#issuecomment-419265731) on the original issue, the class-like objects [`Raw`](https://github.com/tgriesser/knex/blob/master/src/raw.js#L191-L193), [`QueryBuilder`](2183a27826/src/query/builder.js (L1074)), and [`SchemaBuilder`](232fe9f151/src/schema/builder.js (L68)) use a [utility file](https://github.com/tgriesser/knex/blob/master/src/interface.js) to extend a handful of methods onto them.
The contents of this file are represented in the `ChainableInterface` interface.

Changes made:
- Updated `SchemaBuilder` to extend `ChainableInterface`.
- Moved `debug`, `transacting`, and `connection` from `QueryInterface` to `ChainableInterface`.
- Removed `exec` from `ChainableInterface` as it was [removed 0.12.0](https://github.com/tgriesser/knex/blob/master/CHANGELOG.md#0120---13-sep-2016).
2018-09-10 14:41:16 -07:00
Hunter Tunnicliff
3ff332729a Fix Stripe.customers.ICustomer.metadata (#28720)
The Stripe API always returns `ICustomer` objects with the `metadata` property as `IMetadata`. It is never `undefined`, as the current definition suggests.
2018-09-10 14:40:47 -07:00
Mike North
35c62f9a6f [ember] relax Ember.set while we figure out CP unwrapping again (#28734)
* [ember] relax types while we figure out CP unwrapping again (failing test)

* [ember] relax types while we figure out CP unwrapping again
2018-09-10 14:38:45 -07:00
ComFreek
05174c0e6a libxmljs: add typings for validation (#28737)
- [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.)<br>
      <s>@lorenzleutgeb Could you please do this as I don't use libxmljs at the moment.</s> [See below.](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/28737#issuecomment-419709955)
- [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: 3cec662a9e...1699417611
2018-09-10 14:37:59 -07:00
Benedict Etzel
073542cf4b twitch-ext: Update to 1.15 (#28740) 2018-09-10 14:35:55 -07:00
Piotr Roszatycki
3464a4f5a0 nodemailer; for send() method message is Readable (#28747)
* for send() method message is Readable; more EventEmitter methods

* nodemailer: dtslint tweaks
2018-09-10 14:35:44 -07:00