Commit Graph

7889 Commits

Author SHA1 Message Date
renjfk
6688ade3ea added definitions for selectables 1.4 (#20699)
* added definitions for selectables 1.4

* options are now optional

* constructor is now optional
2017-10-19 08:42:05 -07:00
renjfk
498e2c4641 add definitions for mark.js (#20700) 2017-10-19 08:40:40 -07:00
segayuu
fb6179c085 [hexo-fs] cleanup unnecessary type annotation (#20702) 2017-10-19 08:39:42 -07:00
Ika
12eb86bd1b feat(prettier): update to v1.7.x (#20708) 2017-10-19 08:36:58 -07:00
Emre Doğan
5b3c2c6111 Optional parameters for constructor has been changed according to package's description (#20712) 2017-10-19 08:35:06 -07:00
Viktor Isaev
f9aa971b27 Added typings for "heapdump". (#20716)
* Added typings for "require-dir".

* Fixed dtslint errors.

* Fixed By field.

* Added typings for "restify-cookies".

* Added "cookies" field to Request interface.

* Added typings for "heapdump".
2017-10-19 08:31:05 -07:00
Rob Sterner
1d3179901c per the docs/comments the order can be null (#20721) 2017-10-19 08:27:29 -07:00
AJ Richardson
77eac54847 [lodash] Better chaining wrappers, overload clean-up (#19356)
* [lodash] improved iterateee parameters, simplified forEach overloads

* Changed ListIterator to StringIterator, cleaned up more issues with flatMap

* Even more flatMap cleanup

* Making wrapper types simpler and more accurate (not done)

* Fixed type inference for forEach callback arguments

* Converted explicit wrapper types, implemented differenceWith

* Updated more functions to use new-style wrappers

* Finished updating the remaining methods

* Fixed lint errors

* Fixed parameter type inference when using `any` (#19228)

* Fixed test errors

* Fixed issues with _.get

* Fixed issues with _.get

* consider this

* removed duplicate type, added TODO

* More _.get fixes

* Fixed issues with mapValues with a single parameter

* Modified lodash-tests to have minimal diff with upstream

* Improved backwards compatibility
2017-10-19 08:09:17 -07:00
mattywong
68a737fd80 [@types/next] Update Router.push() method to include UrlLike type (#20671)
* [@types/next] Update Router.push() method to include UrlLike type

Allow a valid UrlLike object instead of only a string type e.g
```
    Router.push({
      pathname: '/pathname',
      query: {
        prop1: '',
        prop2: '',
      },
    });
```
https://github.com/zeit/next.js/#with-url-object-1

* Update router.d.ts
2017-10-19 08:04:18 -07:00
Yoga Aliarham
4aa4400332 Update ioredis type definitions (add pfcount, pfadd, pfmerge interfaces) (#20669)
* Update ioredis type definitions

* Add contributor name

* Update interface order
2017-10-19 07:48:52 -07:00
Weeco
0cbf897a5d Added eachAsync options for concurrency (#20541)
* Added eachAsync options for concurrency

* Added overload function definition for eachAsync
2017-10-19 07:39:30 -07:00
Josh Rutherford
1fb244abed react-dom: add createPortal API (#20245). (#20336)
* react-dom: add createPortal API.

* React, React-DOM: move portal interface to types/react, update render for class components to include ReactPortal.

* react-dom: add second portal test case with jsx, allow jsx in react-dom-tests.

* react, react-dom createPortal api: remove undocumented arguments, properties.
2017-10-19 11:40:47 +01:00
Benjamin Lichtman
ba590380e1 Merge pull request #19533 from voxmatt/relay-modern
Relay modern
2017-10-18 17:00:24 -07:00
Tomoki Ohno
288e9dd83f Add new definition: react-hyperscript (#20693)
* Add new package: react-hyperscript

* Type of function should be declared by function keyword...

* Add a workaround

tsc does not allow `export =`ing function because ES spec does not allow that.
But react-hyperscript does that.
So this workaround is required.
2017-10-18 14:26:47 -07:00
Roberto Desideri
2fd1709e59 Remove myself from the authors (#20697) 2017-10-18 13:44:29 -07:00
Anatoly Demidovich
862695fbb4 fix connect() overload (#20674) 2017-10-18 13:34:17 -07:00
Chris Grigg
28822d262c @types/rosie: allow factory.build with class constructor (#20564)
* allow Rosie factory.build with class constructor to work, though type unsafe

* improve types for build with constructor, improve tests
2017-10-18 13:31:50 -07:00
Will Ockmore
93c5cb136b Add types for stemmer package (#20675)
* Add types for stemmer package

Adds type definition for single default function in
package.

* Change typing in stemmer package to correct format
2017-10-18 12:33:43 -07:00
Mihhail Arhipov
72a17cebba [redux-form] - Added missing error property for FIeldState in v6 (#20522)
* Added missing property for FieldState

* Changed the type from string to any to match v7
2017-10-18 11:34:10 -07:00
Andy
114d3030ad framebus: Fix test failure (#20688) 2017-10-18 11:25:09 -07:00
Andy Hanson
6436c101b0 vue-*: Update based on changes to vue 2017-10-18 11:22:07 -07:00
Andy Hanson
499998cbaa Add missing "strictFunctionTypes" 2017-10-18 11:18:45 -07:00
Ika
00fe65c4f5 feat(minimist-options): initial commit (#20686) 2017-10-18 10:44:17 -07:00
James Bromwell
fadcd86546 Add new methods from pluralize v5.1.0 (#20683)
* Add isPlural / isSingular

Test the changes to `index.d.ts`.

* Add isPlural / isSingular

See [release notes](https://github.com/blakeembrey/pluralize/releases), new API has been present since July.
2017-10-18 09:17:51 -07:00
Demiurga
c722838e01 fix wrong pr #20404 (#20676)
* fix wrong pr #20404

* fix wrong pr #20404

* Update pouchdb-upsert-tests.ts

* Use interface instead of a type literal

* Missing semicolon

* Use Core.DocumentId, Core.RevisionId instead of string
2017-10-18 09:13:36 -07:00
Ruben Taelman
fe0e86abe4 Fix incorrect rdf-data-model data factory interface (#20666) 2017-10-18 09:02:43 -07:00
Oliver Joseph Ash
0960f82a0b Correct type of Node url.query (#20650)
* Correct type of Node url.query

https://nodejs.org/api/url.html#url_urlobject_query

* Add null

* Node url.query: query value as array of strings

* Node: narrow query type to fix tests
2017-10-18 08:56:47 -07:00
Jinwoo Lee
63605aa515 Node: respondWithFile()'s options can have onError. (#20659)
* respondWithFile()'s `options` can have onError.

See the Node document:
https://nodejs.org/dist/latest-v8.x/docs/api/http2.html#http2_http2stream_respondwithfile_path_headers_options

And also the code:
https://github.com/nodejs/node/blob/master/lib/internal/http2/core.js#L1698

* update test
2017-10-18 08:54:49 -07:00
Oliver Joseph Ash
2be8cb24b6 Correct return type of Node querystring.parse (#20651)
* Correct return type of Node querystring.parse

https://nodejs.org/api/querystring.html#querystring_querystring_parse_str_sep_eq_options

* request-promise-native: require TS 2.2 to fix error from Node typings

* Node querystring.parse: return type: query value as array of strings

* Fix tests for request, request-promise, request-promise-native
2017-10-18 08:51:36 -07:00
ajaks328
a7383ba782 add(selenium-webdriver): SeleniumServer to remote.d.ts (#20516)
* add(selenium-webdriver): SeleniumServer to remote.d.ts

* adding test for SeleniumServer

* Add missing interface definition and tests

* Removing "undefined" from optional interface definitions

* Moving comments to invidual members
2017-10-18 08:38:19 -07:00
lei xia
cfac231a5b add zookeeper definition (#20588)
* add zookeeper definition

* type defintion fixed

* zookeeper
2017-10-18 08:35:39 -07:00
Andy
e3f8c31b2a Rename stripe-node to stripe (#20644)
* Rename stripe-node to stripe

* Export class instead of function

* Rename import
2017-10-18 08:27:08 -07:00
João Ferreira
5116960f14 [loglevel] Correct signature for setDefaultLevel. Fixes #20058. (#20605)
* [loglevel] Correct signature for setDefaultLevel. Fixes #20058.

Signed-off-by: jmnsf <jmnsferreira@gmail.com>

* Extracts type, adds UMD tests

Signed-off-by: jmnsf <jmnsferreira@gmail.com>
2017-10-18 08:21:02 -07:00
Eloy Durán
d12367fe0a [Relay] Fix linter issues. 2017-10-18 12:30:27 +02:00
voxmatt
7b8aacb5d6 removing deprecated types 2017-10-17 18:11:40 -07:00
voxmatt
4822ffd689 Merge remote-tracking branch 'upstream/master' into relay-modern 2017-10-17 15:54:27 -07:00
Eloy Durán
95479db2fd [Relay] Simplify modules by removing namespaces. 2017-10-18 00:15:58 +02:00
Martynas Kunigėlis
05ac46f9a9 knex: allow calling .join() with a closure as the second argument (#20434)
* Allow calling .join() with a closure as the second argument that takes
the JoinClause as its first argument, not just a function w/o arguments
with the JoinClause passed as this.

* Call signature corrected per comment from @andy-ms, one of the tests
updated accordingly.

* Got rid of the this-only overload per comment from @andy-ms.
2017-10-17 13:06:34 -07:00
Matt Rollins
9046b7c12a local-dynamo types (#20655) 2017-10-17 12:57:44 -07:00
Don Waldo
4da771ecb4 #6930: Updates Dojox Charting definition module exports (#20654)
* Fixes module definitions to uses import statement.

* Removes unknown tsc compiler options strictFunctionTypes

http://www.typescriptlang.org/docs/handbook/compiler-options.html

* Puts back strictFunctionTypes flag

Seems that the CI build fails unless this compiler flag is present, but doesn't seem to be representative of the current typescript options.
The instructions say to run tsc, however it seems the flags may have changed between versions.  The Travis CI output does not report the tsc version number being used.

* Revert "Puts back strictFunctionTypes flag"

This reverts commit aba384b0b3cbe904bd6632df8c152b09637022b0.

* Revert "Revert "Puts back strictFunctionTypes flag""

This reverts commit 41cda05cc9baf07ea3551b2989d650c553606eb7.

* Adds new line to end of file
2017-10-17 12:56:32 -07:00
moritz-h
2dfadabbb1 [jszip] fix typo (#20653) 2017-10-17 12:55:05 -07:00
Dominik Burgdörfer
f22d772d3e Fix typo (#20652) 2017-10-17 12:54:44 -07:00
Jeff Kenney
43a2660602 Fix node url and http/https request types (#18766)
* [node] url.format can take a string

* [node] http.request / https.request can take a string

* [node] reorder Url properties to match ordering in docs

* [node] DRY out the Url and UrlObject types

* [node] backport split Url / UrlObject types to v0 and v4

* remove 'any' union for UrlObject.query type
2017-10-17 12:00:46 -07:00
Richard Jedlička
f487a1c111 [react] Fix isValidElement to accept any type (#20641)
* [react] Fix `isValidElement` to accept `any` type

* [react] Fix `isValidElement` method param type

Change `object` parameter type from `any` to more explicit.
2017-10-17 11:58:39 -07:00
Piotr Roszatycki
fac8421264 Type definitions for Nodemailer 4.1.3 (#20443) 2017-10-17 11:57:31 -07:00
totano
135425f6da @types/jest: added setTimeout method (#20610)
* added setTimeout method

* Update and rename index.d.ts to test

* Rename test to index.ts

* Update index.ts

* Rename index.ts to index.d.ts

* Update index.d.ts

* Update jest-tests.ts

* Update jest-tests.ts

* Update jest-tests.ts

* Update jest-tests.ts
2017-10-17 10:13:28 -07:00
Leonard Thieu
fdd6cc3a35 [jquery] after(), append(), before(), and prepend() can accept an array of JQuery (#20319)
* [jquery] `after()`, `append()`, `before()`, and `prepend()` can accept an array of JQuery.

* [jquery] Lint.

* [jquery] Disable flaky tests.

* [sharepoint] Lint.

* [tinymce] Lint.

* [ej.web.all] Lint.

* [jquery] Fix unintended change to Callbacks.

* [jquery] Fix test.
2017-10-17 09:26:14 -07:00
Alessandro Vergani
d518490227 Add O_DSYNC flag (#20638) 2017-10-17 09:17:47 -07:00
Alessandro Vergani
52f686b9db Add lookup to dgram SocketOptions (#20636) 2017-10-17 09:16:06 -07:00
Richard Silverton
fa63fd564a fix ReferenceOptions interface for Joi to include Hoek.reach options (#20635) 2017-10-17 09:15:45 -07:00