Commit Graph
33309 Commits
Author SHA1 Message Date
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
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
Dovydas Navickas 1990f71c1f Update index.d.ts 2017-07-27 23:33:01 +03:00
Dovydas Navickas 0139a27de7 Update index.d.ts 2017-07-27 23:16:38 +03:00
Dovydas Navickas 63c461f72e Merge pull request #1 from DefinitelyTyped/master
Master to patch-2
2017-07-27 23:15:05 +03:00
Ed Staub 351950a008 Add withSchema() to queryBuilder interface (#18452)
... not to be confused with the schemaBuilder withSchema method
2017-07-27 11:29:42 -07:00
Goldsmith42 a05eb94880 Added definition for properties-reader. (#18408)
* Added definition for properties-reader.

* Improved definition for properties-reader.

* Removed object reference from properties-reader.
2017-07-27 08:07:41 -07:00
Leonard Thieu 1abd6ee8d6 [semantic-ui] Update to 2.2.11 (#18431)
* [semantic-ui-form] Update to 2.2.11.

* [semantic-ui-form] Add previously undocumented 'add prompt' behavior.

* [semantic-ui-modal] Fix spacing in documentation.

* [semantic-ui-sticky] Update to 2.2.11.

* [semantic-ui-popup] Update to 2.2.11.

* [semantic-ui-api] Add 'api' setting.

* [semantic-ui-api] Lint.
2017-07-27 08:07:27 -07:00
ZheyangSong 41e137c8e9 Fix react-grid-layout Type Definition (#18433)
+ each property of `Layouts` should be in shape of `Layout[]`
+ Refs:
    + https://github.com/STRML/react-grid-layout/blob/master/test/examples/0-showcase.jsx#L55
    + https://github.com/STRML/react-grid-layout/blob/master/test/examples/0-showcase.jsx#L84
    + https://github.com/STRML/react-grid-layout/blob/master/lib/responsiveUtils.js#L71
    + https://github.com/STRML/react-grid-layout/blob/master/lib/utils.js#L39
2017-07-27 08:03:46 -07:00
wanganjun 26e81f5e87 add tslint.json for package arrify (#18435) 2017-07-27 08:03:21 -07:00