Commit Graph

33317 Commits

Author SHA1 Message Date
Nicolas Penin
84fe7d96fb strongly typed function 2017-08-22 20:36:50 +02:00
Nicolas Penin
613daf6bca fixed tslint issues 2017-08-17 19:52:20 +02:00
Nicolas Penin
093edfc11f updated tsconfig to match PR rules 2017-08-17 07:18:43 +02:00
Nicolas Penin
c7cba7374e added sequencify 2017-08-17 07:08:52 +02:00
Hiroki Horiuchi
0df7e8bc93 Merge pull request #18490 from OliverJAsh/revert-18039-patch-10
Revert "express-session: req.session is not optional"
2017-08-01 11:52:11 +09:00
Dimitri Benin
cfc549b2c1 [delay] introduce typings (#18526) 2017-07-31 16:25:53 -07:00
Rich Seviora
178dd15e5e Update for React 16 (#18463) 2017-07-31 14:58:27 -07:00
Rogach
45bcdda85e [react-datepicker] align typing to v0.52.0 (#18374) 2017-07-31 14:55:47 -07:00
Martynas Žilinskas
edbbc0dd56 [react-select] Fixed and updated (#18287)
* Added tslint. Fixed some dtslint errors.

* Changed from empty style object to React.CSSProperties.

* Changed from any to dictionary props.

* Created prop handlers types.

* Fixed props return types and Handlers return types.

* Added options. Added missing focus method in ReactSelect.

* Rewritten tests.
2017-07-31 14:54:59 -07:00
Michael Srocka
1b7656c466 [typeahead] methods whitespace and nonword in ObjTokenizer should return functions (#18242) 2017-07-31 14:53:51 -07:00
Diogo Franco
2b0d0375e6 Add react-loadable TS2.4 tests (#17965)
* Add tests using import() to react-loadable

* Fix lint errors in react-loadable tests

* Add comment to react-loadable to clarify a common issue
2017-07-31 14:48:19 -07:00
Piotr Srebniak
225b1dc694 [react-infinite-scroller] add missing page param to loadMore method (#18428) 2017-07-31 14:47:39 -07:00
Chris Krycho
9b53cc27cf Update RSVP and its Ember dependents. (#18383)
- Add default export and test code to RSVP, including sample code from
  the RSVP library.
- Use imported RSVP types in Ember and ember-testing-helpers definitions.
- Set minimum TS version in RSVP, Ember, and ember-testing-helpers.
- Fix ember-testing-helpers header.
- Make RSVP a two-type-parameter type; update Ember typedefs accordingly.
- Update authors, definitions link in RSVP header.
2017-07-31 14:47:19 -07:00
Tomek Łaziuk
6c4db41530 [sinon-express-mock] express compatibility (#18307)
* express compat

improve typings and make them compatible with express itself

* assert

* assert fix
2017-07-31 14:17:23 -07:00
Shaun Luttin
50b8848115 Edit types for chai Assert (#18420) 2017-07-31 14:16:23 -07:00
Aliaksei Tuzik
a978b727ac [amqplib] enable strictNullChecks (#18361) 2017-07-31 14:14:00 -07:00
Jinesh Shah
01b1d90bc2 Added Boomify as per the new API [types/boom/index.d.ts] (#18363)
* Update index.d.ts

* Update index.d.ts

* added boomify test
2017-07-31 14:11:28 -07:00
Michael Bond
f3b3098452 aws-lambda: Add isBase64Encoded support to ProxyResult (#18450)
This is required when using Binary support in API Gateway. 
See Also: "Output Format of a Lambda Function for Proxy Integration" https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-set-up-simple-proxy.html
2017-07-31 14:00:31 -07:00
Deividas Bakanas
417f73ad32 [node] undefined type added to properties of dictionaries. Some TSLint TODOs resolved. (#18372)
* `undefined` type added to properties of dictionaries;
Formatting fixed;
TSLint TODOs resolved:
- adjacent-overload-signatures;
- align;
- array-type;
- callable-types;
- comment-format;
- dt-header;
- import-spacing;
- interface-over-type-literal;
- jsdoc-format;
- no-consecutive-blank-lines;
- no-padding;
- no-string-throw;
- object-literal-shorthand;
- one-line;
- only-arrow-functions;
- semicolon;
- whitespace.

* `NodeRequireFunction` `type` reverted to `interface`.
2017-07-31 13:57:11 -07:00
Andrew Lowe
3bc7dcf296 Add foreignKeyTarget and otherKeyTarget to belongsToMany method (#18448)
Defined in bookshelf docs: http://bookshelfjs.org/#Model-instance-belongsToMany
2017-07-31 13:56:33 -07:00
Chris Krycho
382602b16a Fix some Ember definitions. (#18379)
- Add definitions for `computed.filter` and `computed.filterBy` methods.
- Add definitions for `getProperties` on Ember base object.
- Fix the `computed.map` definition to actually include the callback
- Fix the `run` method’s callback type.
2017-07-31 13:56:22 -07:00
benbayard
1d74e8b21a Update index.d.ts (#18479) 2017-07-31 13:55:52 -07:00
Maarten van Vliet
1de0136f93 @types/gm Add GetterOptions for working with streams and identify operations (#18447)
* Add GetterOptions for working with streams and identify operations

Identify operations need to buffer readStream in memory if you
need to write()/stream() afterwards
See: https://github.com/aheckmann/gm/blob/c6a6c5a/README.md#streams

* Apply some tslint recommendations

* Add tslint.json

* Fix linting errors

* Add tslint rule to skip unified-signatures check

* Ensure geometry is passed ResizeOption
2017-07-31 13:55:17 -07:00
Aluan Haddad
972aedb721 typescriptOptions: removed typeCheck option (#18487) 2017-07-31 13:49:51 -07:00
Curtis Layne
b6cb635c6e [recompose] Fixes many serious issues with recompose types (#18496)
The current iteration of recompose types have two issues:

1) Only a handful of HOCs infer required props from their children.
2) Even when an HOC does infer props from its children, it does not remove
requirements for props it injects.

This leads to the parent component rendering a wrapped commponent to not
realize that props an HOC is injecting have already been handled and
leads to a lot of typing issues.

This PR updates a lot of the types to infer injected types and remove /
partial them from the required props list that are passed to their
parent.

Due to a couple of typing issues in the TS language itself there are
some missing pieces, namely compose cannot currently be typed. This PR,
however, makes huge strides in correcting and inferring types in recompose.
2017-07-31 13:48:04 -07:00
Hadrien de Cuzey
b629f5171e [pouchdb] Update types definitions for the latest version of pouchdb (#18519)
Add an optional extended description…
2017-07-31 13:47:32 -07:00
Ali Taheri Moghaddar
d85f1437b9 Fix exceljs row number (#18520)
* Re-add row number

* Test row number
2017-07-31 11:39:58 -07:00
Oliver Joseph Ash
93aa6fbb87 Revert "express-session: req.session is not optional" 2017-07-29 17:27:17 +01:00
Dimitri Benin
c698079f5a [p-timeout] introduce typings (#18480) 2017-07-28 15:48:21 -07:00
QZ
1a93d8e6a8 Add identifier to semver.inc method (#18477) 2017-07-28 12:47:56 -07:00
Joel Poloney
a7bc5ed2d4 Adding missing race method to angular.IQService (#18476)
* Adding missing race method to angular.IQService

https://docs.angularjs.org/api/ng/service/$q lists race(promises); as a valid method in AngularJS $q. Adding this type so it can be used accordingly.

* Fixing lint errors

* Fixing use of array
2017-07-28 12:47:05 -07:00
Jimi (Dimitris) Charalampidis
70c6450707 Add function 'toTable' for IRecordSet<T>. (#18475) 2017-07-28 12:46:27 -07:00
Dimitri Benin
9fb941e644 [p-cancelable] introduce typings (#18478) 2017-07-28 12:45:51 -07:00
Andy
0f8472649f next: Make types accessible from outside (#18416) 2017-07-28 12:42:18 -07:00
rapmue
1fcbecea99 [Recharts] improved the SVG definitions (#18467)
* merged definitions with my own. therefor added some types and made
changed the namespace back to a module.

* fixxed lint errors

* added CSSStyleDeclaration to some elements, so that they are directly styleable like in the original example

* removed commented out code

* commented why points is optional now
2017-07-28 10:51:51 -07:00
Gady
4bcdd24cad Mongodb insert many (#18473)
* Improve types for Collection.insertMany

* Add contribution

* Remove blank line
2017-07-28 10:03:05 -07:00
Graham Laidler
c051125bb9 Made post elementToPost optional (#18474)
This isn't mandatory as restangular.one('objects',123).post('change') is a valid call, so made the elementToPost optional
2017-07-28 10:02:16 -07:00
Dmitry Sorin
00f366894b [raven] Support for raven@2 (#18459)
* Add captureMessage to raven own methods, fix return type (it should be eventId: string) for both captureMessage and captureException

* Add support for req and user (2.x)
2017-07-28 09:06:06 -07:00
huhuanming
7e54573526 bumping version to 5.0 (#18462) 2017-07-28 07:35:52 -07:00
Paul Douglas Brimicombe
9f41dac624 Add missing Random prefix to Engine (#18417) 2017-07-28 07:16:22 -07:00
Douglas Duteil
3afcde1e63 refacto(portscanner): rename node-portscanner to match npm package name (#18465) 2017-07-28 07:14:34 -07:00
Sean Tan
2e47d65b7b Add _rev to doc in AllDocsResponse. (#18464) 2017-07-28 07:12:32 -07:00
Michal Blaha
1c8353016b [flake-idgen] Fix error TS2497 (#18461) 2017-07-28 07:08:05 -07:00
spacejack
af84d72ae6 Fix RequestOptions.config return type (#18458) 2017-07-28 07:06:55 -07:00
Bogdan
04fc36fa2e new definition for "virtual-keyboard" (#18441)
* New definition for 'react-virtual-keyboard'

* fixes

* cleaning

* delete comments and blank line

* "noImplicitThis" have to be equal "true"

* new definition for 'virtual-keyboard'

* change files list in tsconfig.json

* Expected file 'virtual-keyboard-test.ts' to be named virtual-keyboard-tests.ts

* fix errors

* errors

* delete header

* Expected '// Type definitions for '

* header

* Error: At 3:60 : Expected one of

* header

* header

* header

* errors

* err

* err

* error

* global JQuery

* trailing whitespace
2017-07-28 07:00:57 -07:00
Eloy Durán
9622ee3e33 Merge pull request #18402 from timwangdev/patch-1
[react-native] Fix FlatList/SectionList renderItem method types
2017-07-28 10:40:32 +02:00
Tim Wang
f1ebed48aa Add optional property for SectionList 2017-07-28 10:29:17 +08:00
Simone Mariotti
2d6cc6d6fc Adding telebot types (#18454) 2017-07-27 14:48:54 -07:00
Ian Lin
f55037f738 add type for removeSearch(name, value) (#18451) 2017-07-27 14:31:46 -07:00
John Reilly
7cbc0981cd Merge pull request #18368 from DovydasNavickas/patch-2
[react] Reverted #18227
2017-07-27 21:37:53 +01:00