Commit Graph

40400 Commits

Author SHA1 Message Date
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
showmeear
5e86d4b159 Update csv-stringify option to get object as columns (#23045) 2018-01-19 10:09:53 -08:00
Sami Jaber
263bac143f ExpressJS: extend EventEmitter (#23050)
The ExpressJS Application object extends EventEmitter: c0136d8b48/lib/express.js (L42)

This change reflects that in its type definition.
2018-01-19 10:09:27 -08:00
paverbool
d0ae43f17d "block" property of "Card" has been deprecated (#23032)
* "block" property of "Card" has been deprecated

* Add definition for v5 & remove from v4
2018-01-19 10:08:56 -08:00
Jeremy Wells
e2cb09b5ae [@types/react-onsenui] Add SpeedDial, SpeedDialItem, Segment, Toast components and add missing properties. (#22940)
* [@types/react-onsenui] Add SpeedDial, SpeedDialItem, and Segment component types

* [@types/react-onsenui] Add Toast component

* [@types/react-onsenui] Add missing props to Tabbar component

* [@types/react-onsenui] Tabbar renderTabs return type

* [@types/react-onsenui] Tabbar animation is optional

* [@types/react-onsenui] Tab label and icon

* [@types/react-onsenui] Fix version, add missing style and className properties

* [@types/react-onsenui] Add style and className properties to Toast

* [@types/react-onsenui] tslint fixes

* [@types/react-onsenui] Property fixes for PR

Toast isOpen is required

Tabbar index and renderTabs are required

Tabbar animation does not accept 'fade'

Tabbar onSwipe takes arguments

* [@types/react-onsenui] tslint fixes
2018-01-19 09:07:16 -08:00
Sebastian Neira
d67b9f5c77 Update nconf required() and add any() (#22887) 2018-01-18 19:09:35 -08:00
Thomas Conner
a00af36a8b Add new option for LokiJS collection constructor (#22967)
* Add new option for LokiJS collection constructor

* Fix typo
2018-01-18 19:07:17 -08:00
Renaud Chaput
8289d12c75 yup: add setLocale and update with 0.24 changes (#23033)
* Add `setLocale` definition
* Add `lessThan`, `moreThan` on `number` (according to https://github.com/jquense/yup/blob/master/CHANGELOG.md)
2018-01-18 13:53:45 -08:00
Mathias Lykkegaard Lorenzen
5f5ccc3872 for for scenario where passing in simple types to ko.toJS did not work (#23015)
* fix for rather critical oversight

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts
2018-01-18 13:34:04 -08:00
Trivikram
879f9b3d81 pino: update project URLs in the comments (#22885) 2018-01-18 13:31:04 -08:00
YairTawil
fa562df8d1 fix(type/ol): add import 'ol' from 'openalyers' (#23025)
* 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'
2018-01-18 13:29:51 -08:00
Tomek Łaziuk
9b9df23750 [koa-mount] version bump (#22873)
* version fix and dtslint

* dtslint
2018-01-18 13:28:51 -08:00
Tomek Łaziuk
5fef2dbbe2 [koa-bodyparser] fix package version (#22871)
* fix version

* Update index.d.ts

* Update index.d.ts

* dtslint
2018-01-18 13:28:26 -08:00
Dimitar Nestorov
1b1867eefd [@types/react-motion] Added didLeave. (#22875)
Added didLeave to TransitionMotion props.
2018-01-18 13:27:55 -08:00
Tomek Łaziuk
05c5ec5f90 [koa-session] upgrade typings to v5.7 (#22882)
* upgrade typings

* version bump

* dtslint
2018-01-18 13:27:25 -08:00
AJ Richardson
437a2eef37 lodash: add isMatch to explicit wrapper interface, enable more lint rules (#22883)
* lodash: _.get should with numeric keys, too.
Also added some better tests.

* Enable array-type and ban-types rules

* Enable more lint rules, add isMatchWith to explicit wrapper
2018-01-18 13:25:39 -08:00
Denis Malinochkin
6fe162ecd9 feat(types): Add types for the «readdir-enhanced» package (#23022) 2018-01-18 13:15:17 -08:00
Arylo Yeung
2267e573cb Add type definition for mocha-steps (#23018) 2018-01-18 13:14:00 -08:00
dwieeb
1660072278 [update-notifier] Make options optional for v1, add v2 types (#23007)
* [update-notifier] Make options optional

* [update-notifier] Add v2 types with isGlobal addition

* Older versions goes in subdirectories
2018-01-18 12:53:58 -08:00
Charles Vandevoorde
02be5edae6 add mozilla/readability types (#23038) 2018-01-18 12:50:13 -08:00
Carlton Colter
12c04f3166 Resolved Issues 22835 and 22836 (#23036)
Resolved Issues 22835 and 22836.

I also removed the deprecation warning from save.  It should not be deprecated.  As far as I can tell, it is not deprecated in v9.
2018-01-18 12:48:34 -08:00
Jacob Froman
ec586dfcfb [react-native-snap-carousel] Update definitions to match v3.x changes (#23005)
* Update definitions to match v3.x changes

* Correct typo in apparitionDelay

* Update required props and ParallaxImage props

* Add ParallaxImage example to tests

* Refactor ParallaxImage example to be clearer

* Correct stray blank line

* Remove undefined from optional properties
2018-01-18 12:47:28 -08:00
Nicolas Beck
a72670d7f8 react-navigation | support functional components everywhere where ComponentClasses are s… (#22970)
* support functional components everywhere where ComponentClasses are supported

* use React.ComponentType
2018-01-18 12:46:02 -08:00
Sebastian Neira
8d73479bdd Add Knex column by object (#22994) 2018-01-18 12:43:09 -08:00
Eduard Shvedai
bd525a55ef added types for utils functions in prosemirror-tables (#23013) 2018-01-18 12:42:03 -08:00
Jinesh Shah
e8779a83a8 Fixed types for array parameters (#23011)
The old version was using a tuple rather than an array parameter for batch adds and updates
2018-01-18 12:41:27 -08:00
Alessio Dionisi
f65c838f12 Fix compilation error (#23010) 2018-01-18 12:41:05 -08:00
CodeAnimal
7180b7d442 Update Stripe package to include subscription items (#23006)
* Add subscription items

Fix #22783

* Add subscriptionItem property and fix bugs

* Add tests

* Add billing attribute to subscriptions

https://stripe.com/docs/api#subscription_object
2018-01-18 12:40:09 -08:00
Stepan Zastupov
4bb0793fd9 Make dsn parameter in Raven.config() optional (#23020) 2018-01-18 12:39:47 -08:00
Anton Myzenkov
19d6cbd330 [mongodb] Added ChangeStream class (#22872)
* [mongodb] Added ChangeStream class

* Replaced ChangeStreamCallback to MongoCallback
2018-01-18 10:17:58 -08:00
York Yao
6caa94a7a4 add types of zipkin-context-cls, zipkin-instrumentation-express, zipk… (#22998)
* add types of zipkin-context-cls, zipkin-instrumentation-express, zipkin-instrumentation-fetch, zipkin-transport-http

* fix: CI failure because express require typescript 2.2

* fix: test zipkin-context-cls only, remove irrelevant test code
2018-01-18 07:15:59 -08:00
Muhammad Rehan Saeed
7742f42ef1 compression-webpack-plugin - Add cache to options object (#22853)
* Update index.d.ts

* Bump version

* Update compression-webpack-plugin-tests.ts

* Update index.d.ts
2018-01-18 01:28:03 -08:00
Sheng Chen
6e3c284a47 @types/websocket: change the client.connect() method signature (#22734)
* change the client.connect() method signature

* change {} to object

* add comment to specify ts version to 2.2 or higher
2018-01-17 18:59:15 -08:00
Andy
c87e48c8e4 ably: Provides its own types (#22860) 2018-01-17 14:35:48 -08:00