Commit Graph

36242 Commits

Author SHA1 Message Date
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
Piotr Roszatycki
173d1d4e9e node: dgram buffer size options and methods for Node 8.7.0 (#20535)
* dgram buffer size options and methods

* Verify type returned by dgram.*BufferSize methods
2017-10-16 13:40:56 -07:00
Maarten van Vliet
2d02d74ac7 @types/gm Use union types instead of overloaded functions (#20530)
* Turn on unifiable signatures tslint rule

* Use union types in favor of overloaded functions

* Add myself to definitions editors field
2017-10-16 13:40:25 -07:00
Jinwoo Lee
99064aa7c7 Add types for Writable#_writev() & Duplex#_writev(). (#20529)
* Add types for Writable#_writev() & Duplex#_writev().

As written in the doc:
https://nodejs.org/dist/latest-v8.x/docs/api/stream.html#stream_writable_writev_chunks_callback

* change `callback` from `Function` to `(err?: Error) => void`

* make _writev() optional.

Per the node document, it may or may not be implemented by implementations.
2017-10-16 13:39:23 -07:00
Valérian Galliat
e9c47be75e request: response request always have an URI (#20526) 2017-10-16 13:38:41 -07:00
Richard Jedlička
6980b9ff25 [meteor] Fix meteor/ejson/EJSONableCustomType (#20523)
Fixing commit 7031c869bb

In referenced commit the `clone` and `equal` methods in EJSONableCustomType was marked as optional but forgot to update the corresponding interface in `declare module "meteor/ejson"` section.
2017-10-16 13:38:21 -07:00
Ivan Jiang
352c9814fb Add missing transformErrors definition (#20514) 2017-10-16 13:27:21 -07:00
Karol Janyst
63e621265a Update redux-saga-routines definitions (#20513)
* Add definitions for redux-saga-routines

* Make payload parameter optional, add test for routine
2017-10-16 13:26:47 -07:00
Benoit V
016a82b4eb Update index.d.ts (#20499)
Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
Broken by: a24aee6125
React documentation for the supported "type" attribute: https://reactjs.org/docs/dom-elements.html
2017-10-16 13:19:44 -07:00
Jaye
77f13a18d6 [croppie] add missing type property for croppie 2.5 (#20484) 2017-10-16 13:16:33 -07:00
kazuyamamoto
ea8b7af8c6 [node] Add tls.getCiphers() and tls.DEFAULT_ECDH_CURVE (#20482)
https://nodejs.org/api/tls.html#tls_tls_getciphers
https://nodejs.org/api/tls.html#tls_tls_default_ecdh_curve
2017-10-16 13:16:08 -07:00
Robert K. Bell
547c7fd610 [types/node] Add final option to Stream WritableOptions (#20477)
* fix: add `final` option for WritableStreams

* fix: use more accurate type for `final()`

* typo: whitespace

* test: add `final` option

as documented here:
https://nodejs.org/docs/latest/api/stream.html#stream_constructor_new_stream_writable_options

* fix: cb is mandatory, error is optional
2017-10-16 13:15:22 -07:00
Harry
32f35a9cc1 Allow "Element" type for masonry element selector (#20473) 2017-10-16 13:15:03 -07:00
Max Battcher
58ad2772c3 Turf hosts own type definitions (#20334) 2017-10-16 13:04:19 -07:00
Alexandre
a7a71f2be3 Fix some mapbox-gl mismatching typings (#20472)
* Fix some mapbox-gl mismatching typings

* Increase version and fix ts options

* Remove flag

* Add back strictFunctionTypes: true flag

* More types fix

* Make fill-outline-color optional
2017-10-16 11:57:48 -07:00
Evan Madow
38bd4efd5d Exporting nightwatch interfaces (#20465)
* Exporting nightwatch interfaces

* Update nightwatch-tests.ts

* fixes
2017-10-16 11:56:13 -07:00
Joshua Netterfield
5f3cbdcfb3 Update react-monaco-editor types to track 0.10 (#20464) 2017-10-16 11:52:55 -07:00
David Khourshid
f530bf01f5 Puppeteer: fixing .cookies() method type and other cleanup (#20160)
* Fixing .cookies() method type and other cleanup

* Reversing automatic formatting

* Cookie[] -> Array<Cookie>

* Undoing unnecessary single quoting and fixing lint errors
2017-10-16 11:47:33 -07:00
Diogo Franco
7d955710bb [history] Mark Location's key as optional (#20447)
While the `key` will always be a string value after updating history, it will not be present when the `history` object is first created, at least until the first push/replace state happens.
2017-10-16 11:43:18 -07:00
Christopher Deutsch
9c1dc77ef4 Updated react-autosuggest for version 9.3.X (#20442)
`react-autosuggest` had some breaking changes.

Previously Autosuggest was defined with `any` props which meant no type checking was happening.

New definition enables type checking when using `Autosuggest` component.
```
declare class Autosuggest extends React.Component<Autosuggest.AutosuggestProps> {}
```
2017-10-16 11:36:31 -07:00
Jean-Baptiste Gomond
7a99e7c48a Corrected type of parameter "stream" in interface Options of @types/simple-peer (#20435) 2017-10-16 11:34:19 -07:00
Leonard Thieu
42cf3abe63 [jquery] Add ajaxSettings property. (#20433) 2017-10-16 11:32:07 -07:00
Aurélien
112130d22b fix(algoliasearch): generateSecuredApiKey returns a string (not void) (#20423)
* fix(algoliasearch): generateSecuredApiKey returns a string (not void)

* fix(algoliasearch): use object[] instead of [{}] in saveObjects method inputs
2017-10-16 11:19:24 -07:00