Commit Graph
40434 Commits
Author SHA1 Message Date
Andy Hanson 55c1e5bf6b Merge branch 'v2.2.4' of https://github.com/crimx/DefinitelyTyped into crimx-v2.2.4 2018-01-23 10:48:34 -08:00
Edward Woolhouse f009df31d0 [bytebuffer] Add missing 'readBytes' and 'writeBytes' functions (#23044) 2018-01-23 10:47:15 -08:00
Kim Joar Bekkelund cc49e97d50 Use 'export =' for type-detect (#23049) 2018-01-23 10:46:47 -08:00
Sriram Thiagarajan 00865c52ee added id prop for react-select input (#23054)
* added id prop

* jsdoc in right place

* default value for id to be undefined
2018-01-23 10:45:40 -08:00
Ankit Tyagi 1d84357470 @types/mongodb - add appname to MongoClientOptions (#23060)
- Based on
  https://mongodb.github.io/node-mongodb-native/3.0/api/MongoClient.html#.connect
2018-01-23 10:44:30 -08:00
maximelkin f69b0ea7b6 add @types/node-cron (#23062)
* add node-cron

* Update tslint.json

Remove lint rule
2018-01-23 10:43:37 -08:00
Dmitry c6a22f77ba Add missed carousel definition variant (#23063)
https://getbootstrap.com/docs/3.3/javascript/#carousel-number
2018-01-23 10:42:43 -08:00
Omar Diab 398ebb9d76 knex: default batchInsert chunkSize arg (#23064)
* knex: optional batchInsert chunkSize arg

* knex: add test for optional batchInsert
2018-01-23 10:39:09 -08:00
Qibang 8abd412a02 feat: add tabBarOnPress (#23068) 2018-01-23 10:36:05 -08:00
York Yao 7a3a2f77d5 feat: add types of geetest (#23069) 2018-01-23 10:35:45 -08:00
Niall 27b74af5a2 Update googlemaps fitbounds method to include padding (#23071)
fitbounds has an optional second argument: padding.

reference: https://developers.google.com/maps/documentation/javascript/reference (see Methods section, first method).
2018-01-23 10:32:48 -08:00
smhxx ec91c51a72 chai, chai-dom, chai-jquery: fix signature of match()/matches() methods (#23077)
* chai: fix signature of match()/matches() methods

* chai-dom: add missing assertions from recent minor versions

* chai-jquery: add missing declaration caused by changes to @types/chai
2018-01-23 10:32:16 -08:00
Ahn 29a649e6ab Add accessType to jest.spyOn as supported in Jest 22.1.0+ for types/jest (#23082)
* Add accessType to jest.spyOn

* Adjust version

* Adjust accessType to be more accurate on expected type value
2018-01-23 10:31:06 -08:00
Bruno Lemos 745b78c0b2 [react-native] Add locale prop on DatePickerIOS (#23080) 2018-01-23 10:30:47 -08:00
Junyoung Choi (Sai) 861b87f6ba Add dashify (#23092)
* Add dashify

* Use 4 spaces
2018-01-23 10:28:25 -08:00
Ika 09f0e72b83 feat(vfile-location): initial commit (#23088)
* feat(vfile-location): initial commit

* fix: strings are allowed

* docs: add descriptions
2018-01-23 10:27:49 -08:00
Hyeonsu Lee e626e99df9 Add @expo/vector-icons definitions (#23093)
* Add @expo/vector-icons definitions

* Rename the test file
2018-01-23 10:23:55 -08:00
Dominique Rau 8b292ec78a Lodash: split up monolith file and use per file per method. (#23100)
* feat(restructure): split up monolith

* fix(header): fix typo in file header

* fix(properties): add missing property files

* fix(tests): delete new empty test-files for now

* fix(test): revert type changes
2018-01-23 10:22:44 -08:00
Andy 37685e11dd Add tslint disables for no-const-enum (#23134) 2018-01-23 18:19:36 +00:00
suXin c2f0e4aea1 Add @types/forms (#23103) 2018-01-23 10:19:03 -08:00
UselessPickles 2e2da6027f [enzyme] Fix signature of the "filter" method. (#23108)
* Improve signature of ShallowWrapper.filter and ReactWrapper.filter to
return appropriate specific types when the apram is a ComponentClass or
StatelessComponent.

* Improve signature of filter() to return a wrapper with HTMLAttributes props when a string CSS selector is provided.

* Improve unit tests to properly test various signatures of methods that are expected to return wrappers with different props types.

* [enzyme] Fix signature of "filter" when param type does not narrow down the possible type of the element/component collection.

* [enzyme] Fix incorrect use of "this" return type in "filter" signatures.
2018-01-23 10:18:02 -08:00
Andy 716acfd6b2 core-js: Fix lint (#23135) 2018-01-23 10:15:13 -08:00
Akos Krivachy ae52dc806c Update @types/username typings from 1.0.1 to 3.0.0 (#23112)
The API has been promisifyed, instead of using a callback based one
2018-01-23 10:12:15 -08:00
jimwards17 e4bb06153a Update index.d.ts (#23117)
see this related issue that is now closed: 
https://github.com/leongersen/noUiSlider/issues/813

When calling get type should be strings
2018-01-23 10:11:39 -08:00
lihao e2a3302098 export mongodb Logger (#23122)
* export mongodb Logger

* format file
2018-01-23 10:11:10 -08:00
YairTawil 27a4ffdc6f types/openlayers - updates for olx.interaction.SelectOptions and ol.View (#23123)
* Initialize ol type

* Type definitions

* import openlayers

* Update tsconfig.json

* Update index.d.ts

* fix(): no-declare-current-package

* lint(): new line at end of files

* fix(test, lint)

* fix(tsconfig): format tsconfig.json

* fix(types/ol): add import 'ol' from 'openalyers'

* types/openlayers add hitTolerance to SelectOptions

* update 'Definitions by'
2018-01-23 10:10:26 -08:00
Daniel Rosenwasser acbc6ad7f5 Fixed typo and updated test for 'silent' option in 'gulp-connect'. (#23124) 2018-01-23 10:09:50 -08:00
CodeAnimal ede9553e0c Update Stripe package (#23083)
* Update ICard#customer type def

Add `string` to `customer` type.

* Add pay options to Invoices#pay method

* Add tests

* Change IMetadata to a `type` equal to `any`

See tests as to the reasons why I believe it's useful for it to be
changed.

* Add proration creation options to SubscriptionItems

Plus tests.

Documentation:
https://stripe.com/docs/api#create_subscription_item

* Update IMetadata definition with tests

* Add IOptionsMetadata
2018-01-23 09:34:26 -08:00
Niels Swimberghe ff671eae53 [Actions-on-google] add Coordinates interface for long latitude (#23084)
* [actions-on-google] Add coordinates interface with lat and long

The coordinates property typed as object, which forced users to cast coordinates manually.
With the Coordinates interface that is not necessary anymore.

* Fix missing semi colons
2018-01-22 13:47:17 -08:00
Shrey Jain 09091ad257 [superagent] Fixed definitions for parsers. (#23086)
* Fixed definitions for parsers.

* Different parser functions signatures for browser and node.
2018-01-22 13:46:57 -08:00
Matt R. Wilson b2e070fa93 [@types/request-promise] Stop extending Promise. (#23087)
Both `@types/request-promise` and `@types/request-promise-native` were
extending their particular `Promise` implementations, however, the
actual libs don't extend these objects. All they do is add logic to the
`Request.prototype.init` function and "expose" a few defined methods
from theit `Promise` implementations.

This came up while looking into the issue on #23004.
2018-01-22 13:46:03 -08:00
Boris Breuer 04a5483d77 Modified Jasmine (#23094)
* According to the documentation, execute arguments are optional.
See  https://jasmine.github.io/2.3/node.html for more information.

* Added name to package header.

* The onComplete callback comes with a boolean indicating if the tests pased.
Specify a custom onComplete callback. The callback is given a boolean of whether all of the specs passed or not. This is often used to message a status to task runners like grunt.
See also https://jasmine.github.io/2.3/node.html.
2018-01-22 13:45:04 -08:00
David Noreña Perez 35f2d7daa9 Fix auth0-js Auth0UserProfile (#23098) 2018-01-22 13:43:10 -08:00
WORMSS 2ededd19ee Python Shell (#23104)
Changed to python-shell to extends EventEmitter and removed on function
since it is specified in EventEmitter
2018-01-22 08:58:42 -08:00
Niklas Mollenhauer 29b272bc7b Narrow some interface type members (#23106) 2018-01-22 08:58:16 -08:00
Matas Dailyda 0bab7d15d8 Add ReactTableDefaults (#23107)
Added missing export.
2018-01-22 08:57:46 -08:00
Leonard Thieu 32a23a8139 [jquery] Update to jQuery 3.3. (#23095)
* [jquery] .addClass(), .removeClass(), and .toggleClass() methods now accept an array of classes.

* [jquery] Add test for overload of .toggleClass().

* [jquery] Add jQuery 3.3 deprecations.
2018-01-21 20:00:14 +00:00
Eloy Durán 4174f17298 Merge pull request #23078 from brunolemos/patch-2
[react-native] Support space-evenly option on justifyContent style
2018-01-20 19:25:26 -05:00
Eloy Durán 0e4e502725 Merge pull request #23081 from brunolemos/patch-4
[react-native] Improve DatePickerIOS minuteInterval typing
2018-01-20 19:24:57 -05:00
Bruno Lemos 49ab9fc0db [react-native] Improve DatePickerIOS minuteInterval typing 2018-01-20 16:11:24 -02:00
Bruno Lemos 90c7b09a6d [react-native] Support space-evenly option on justifyContent style
- [x] 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.)
- [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/facebook/react-native/commit/1050e0b
2018-01-20 15:41:19 -02:00
Pavel Ivanov 5326692703 @types/Knex added unnceccessay length param to table builder binary method according to knex docs. (#22962)
* added unnceccessay length param to table builder binary method

* added example of usage in tests file

* fixed missed semicolons
2018-01-20 06:25:35 -08:00
MikeDimmickMnetics c686efd51b [q] Allow thenReject to return a promise for a different type (#23029)
* Change the Promise.thenReject signature to allow matching of a
  different type.

Type-checking rejections is problematic as it's equivalent to `throw`:
you don't get a value of type T in your success callback. You get
an Error (or other thrown type) in an error callback.
2018-01-19 12:22:15 -08:00
Andrew Stiegmann d512b1f5d1 Add usePushEach flag to Mongoose Schema Options (#23042)
In order for devs to be able to work around the issues described in
https://github.com/Automattic/mongoose/issues/5574 we need to be able
to supply the `usePushEach` flag to the Mongoose SchemaOptions. This
options functionality is described in
https://github.com/Automattic/mongoose/issues/4455 and is required for
anyone who modifies arrays inline who is using Mongoose 4 and MongoDB
3.6+

Testing:
  Copied changes to local project and verified compilation worked.
2018-01-19 10:15:29 -08:00
Mohsen Azimi 17da0c5f54 WhitelistOption can be singular item in webpack-node-external (#23040) 2018-01-19 10:15:14 -08:00
UselessPickles 944b7ba283 enzyme: Improve signature of ShallowWrapper.filter and ReactWrapper.filter (#22975)
* Improve signature of ShallowWrapper.filter and ReactWrapper.filter to
return appropriate specific types when the apram is a ComponentClass or
StatelessComponent.

* Improve signature of filter() to return a wrapper with HTMLAttributes props when a string CSS selector is provided.

* Improve unit tests to properly test various signatures of methods that are expected to return wrappers with different props types.
2018-01-19 10:15:01 -08:00
Dolan b80fbe8b66 Improved typings for archiver (#23009)
* Add typings

https://github.com/DefinitelyTyped/DefinitelyTyped/issues/22944#issuecomment-357971211

* Change quotation marks

* Version bump
2018-01-19 10:13:51 -08:00
Sean McGary a8706fc330 Sequelize - Add function interface for UUID types (#22929)
Adding the function interface now allows the user to specify
a default value for UUID types:

```
const TestModel = sequelize.define('test_model', {
	uuid: {
		type: Sequelize.UUID,
		defaultValue: Sequelize.UUIDV4()
	}
});
```
2018-01-19 10:13:31 -08:00
Adam Bowles 4354972427 Add 'dark' to type prop (#23031) 2018-01-19 10:12:46 -08:00
Rudolph Gottesheim 09bc77ae3d Fix cleave.js (Cleave is a class, not a function) (#23046)
* Fix cleave.js (Cleave is a class, not a function)

See examples at https://github.com/nosir/cleave.js

* Add whitespace
2018-01-19 10:12:29 -08:00