Commit Graph
36264 Commits
Author SHA1 Message Date
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
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
Daniel Milbrandt ce9e109a99 added uuid v5 to uuidStatic List (#20634)
You was not able to do "  import {v5} from 'uuid' ", this will fix it
2017-10-17 09:15:27 -07:00
Sergii Paryzhskyi bc2da03e91 Define types for subtract method and add tests for it (#20617) 2017-10-17 09:07:04 -07:00
Shenghan Gao 9266e419ed fix export issue for cytoscape (#20616) 2017-10-17 09:06:08 -07:00
CodeAnimal 14dd64b8cb Add csvrow 0.1 (#20614)
* Add csvrow 0.1 definitions

* Fix dtslint errors

* add newline to end of index.d.ts

* Update tsconfig.json

Set `"strictFunctionTypes"` to `true`
2017-10-17 09:02:32 -07:00
CodeAnimal 2149177050 Add definitions for gen-readlines 0.1 (#20609)
* Add definitions for genreadlines 0.1

* Add `"strictFunctionTypes"` to tsconfig.json

* Update tsconfig.json

Set `"strictFunctionTypes"` to `true`
2017-10-17 08:55:35 -07:00
Ondrej Sevcik 4787f17ca6 Puppeteer: Change page.url() return type (#20598)
* Change page.url() return type

According to docs frame.url() as well as page.url() returns just string, not promise.

source: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#frameurl

* Increment version number

* Increment version number

to the latest puppeteer available

* Set typings version to the latest released version
2017-10-17 08:53:05 -07:00
damon-at-sportsbet e02343af70 @types/vis separated Node color into it's own interface and added it to the Node (#20603)
* separated node color into it's own interface and added it to the node
definition too.

* tslint fixes
2017-10-17 08:50:27 -07:00
Justin Sprigg 60b5c04465 Update @types/google-cloud__storage (#20602)
The save method in the library uses a writeable stream. See https://nodejs.org/api/stream.html#stream_writable_end_chunk_encoding_callback. Also consider adding `any`.
2017-10-17 08:49:41 -07:00
madmaw 7c4d884431 fixed some typos and missing properties in CannonJS definitions (#20599) 2017-10-17 08:48:33 -07:00
Florian Wagner bb318dc9bc Remove flqw (myself) as an author (#20618) 2017-10-17 08:39:06 -07:00
Alessandro Vergani f56bf1addf Fix no-void-expression (#20631) 2017-10-17 08:38:53 -07:00
Jinwoo Lee fb93c75e47 Fix type of createPushResponse() in node http2. (#20510)
* Fix type of createPushResponse() in node http2.

From https://github.com/nodejs/node/blob/master/lib/internal/http2/compat.js#L628:
`callback` is required to be a function. And its second argument is an `Http2ServerResponse`.

* `err` is nullable.

* delete redundant tests that have partial arguments
2017-10-17 08:35:55 -07:00
lei xia a531f8c43d add koa2-cors definition (#20592)
* add koa2-cors definition

* strictFunctionTypes

* fixed bug

* origin defintion

* change strictFunctionTypes to true
2017-10-17 08:26:47 -07:00
Luc Matagne 5d2d699e6b [SignalsJS] Add Generic type support (#20429)
* [SignalsJS] Add Generic type support

* Any as default Signal type

* Add default any types for other declarations
2017-10-17 08:05:03 -07:00
Alessandro Vergani 0905b3d2f9 Add copyFile to node file system (#20185) 2017-10-17 08:00:05 -07:00
Piotr Roszatycki 8ef0c39ccf node: process.stdin is a stream.Readable and process.stdout is a stream.Writable (#20493)
* Readable.wrap returns this

* Add missing properties to interface ReadableStream and WritableStream; change interfaces in fs, dgram and net into classes

* Move all additional properties from ReadableStream interface to ReadStream interface (and Write...)

* hexo-fs should re-export classes from 'fs'

* process.stdin._destroy is a function
2017-10-17 07:44:21 -07:00
Linus Unnebäck 04a54cc722 [stripe-node] Add more subscription list options (#20553)
* [stripe-node] add billing to ISubscriptionListOptions

* [stripe-node] add status to ISubscriptionListOptions

* [stripe-node] move SubscriptionStatus to separate type

* [stripe-node] drop patch value from version
2017-10-17 07:18:35 -07:00
Karol Janyst 0532b90f49 Fix exports for files in lib (#20448)
* Fix exports for react-icons lib to comply with commonjs

* Regenrate lib definitions files

* Change lib file template, regenrate files
2017-10-16 16:50:29 -07:00
John Gozde bbf3e9cb0b [react]: Remove deprecated+removed APIs (#20409)
* create-react-class: add definitions

* react-dom-factories: add definitions

* create-react-class: add tests, fix errors

* react-dom-factories: add tests, fix lint

* react: remove previously deprecated APIs

* Remove deprecated usages in other definitions

* redux-form: disable strictFunctionTypes

Changes to react typings revealed errors in redux-form that are present
in 'master'. This needs to be handled separately.

* Update create-react-class, react-dom-factories author

* Avoid importing create-react-class where possible

* Move top-level createReactClass tests to create-react-class
2017-10-16 15:22:04 -07:00
Richard Jedlička f5a5123320 [codemirror] Fix charCoord and getTokenAt methods according to docs (#20593)
* [codemirror] Fix methods according to docs

- `charCoords` method should have `mode` param optional: http://codemirror.net/doc/manual.html#charCoords
- `getTokenAt` method should have second optional parameter `precise`: http://codemirror.net/doc/manual.html#getTokenAt

* [codemirror] Fix coords mode methods parameter

Fix mode parameter of methods `cursorCoords`, `charCoords`, `coordsChar`, `lineAtHeight` and add missing method `heightAtLine`.
2017-10-16 15:21:29 -07:00
Rasmus Eneman f92fedd919 @types/react: Add documentation to confusing event properties (#20595)
These properties can be non-obvious and some doc comments could be helpful
2017-10-16 15:09:26 -07:00
Junyoung Choi 7e936df852 Add mdurl (#20581)
* Add mdurl

* Add strictFunctionTypes property to tsconfig
2017-10-16 14:49:43 -07:00
jwbay 265c894983 [jest] use default type params for mock and spy declarations (#20577) 2017-10-16 14:45:16 -07:00
Daniel Zou c5e5878777 Chrome debugger type patch (#20574)
* Workaround to use chrome.debugger typedef

* update tabs
2017-10-16 14:43:37 -07:00
Flarna b28f4d4ef3 [karma] Fix tests by removing dependency to log4js (#20572)
log4js typings have been removed via #20518 and the typings exported
by log4js 2.x don't exporte the relevant type.

Created a local type to fix build.

fixes #20534
2017-10-16 14:40:52 -07:00
Travis Thieman 10d9fda787 memory-cache: Add type parameters and expose constructor to instantiate new caches (#20501)
* memory-cache: Add type parameters and expose constructor to instantiate  new caches

* Return arrays from keys() function

* Extend dtslint and fix linting errors

* Add version 0.2 to type header
2017-10-16 14:39:27 -07:00
Flarna 6d460c6b6d [net-keepalive] Remove tslint rule linebreak-style as it forces erros on windows (#20570) 2017-10-16 14:38:40 -07:00
Viktor Isaev cfbaa7d518 Updated typings for "restify-cookies". (#20548)
* Added typings for "require-dir".

* Fixed dtslint errors.

* Fixed By field.

* Added typings for "restify-cookies".

* Added "cookies" field to Request interface.
2017-10-16 13:46:17 -07:00
Jarrad Whitaker d7f5d8fa90 @types/node: Asynchooks promiseResolve and AsyncResource (#20540)
* add promiseResolve hook

* add AsyncResource

* AsyncResource jsdoc fixes

* test remaining AsyncResource methods
2017-10-16 13:42:29 -07:00