Commit Graph
36138 Commits
Author SHA1 Message Date
Rogier Schouten ca3ec2cfe8 fix Node net.createConnection() and Socket#connect() signatures. (#19456)
* fix net.createConnection() and Socket#connect() signatures.

* fix lint errors.

* Fix review comments.
2017-10-16 08:26:29 -07:00
Andy Hanson 424349146a Merge branch 'prannayb-patch-1' 2017-10-16 08:21:03 -07:00
Andy Hanson 7683a9c4bc Fix lint 2017-10-16 08:20:53 -07:00
Andy Hanson c4c3a15e8b Merge branch 'patch-1' of https://github.com/prannayb/DefinitelyTyped into prannayb-patch-1 2017-10-16 08:19:57 -07:00
Marek Buchar 9df54d39a0 simple definition for babylon-walk (#20546)
* babylon-walk

* babylon-walk - added missing tests

* babylon-walk - missing tsconfig.json

* Visitor types enumeration fix

* deleted test file

* added test file back

* removed tsconfig

* added tsconfig back

* tsconfig fix

* downgraded typescript version to 2.3

* strictFunctionTypes: true

* test definitions fix

* added tslint.json and fixed most of issues

* fix for "'Instead of export =-ing a namespace, use the body of the namespace as the module body."
2017-10-15 10:31:19 -07:00
Daniel Rosenwasser 68110feab0 Merge pull request #20582 from ademozay/master
fixed parametere order of getImageSource
2017-10-15 00:30:34 -07:00
Daniel Rosenwasser ca7dc47d8b Merge pull request #20590 from LiJinyao/master
[@types/tough-cookie] setCookieSync options is also optional
2017-10-15 00:30:10 -07:00
Li Jinyao 1cd9e56f72 setCookieSync options is also optional 2017-10-15 02:28:41 +08:00
Adem Özay 6e44bf2866 fixed parametere order of getImageSource 2017-10-14 12:50:02 +03:00
Kalle Ott 3ad090bdf6 created typings for react-native-tab-view (#20575) 2017-10-13 23:16:16 -07:00
Mikael Hermansson b16f84c80c webpack-env: Added type defaults (#19132)
Allows omitting type arguments to the various forms of 'require', falling back to 'any' instead of the TypeScript default of '{}'.
2017-10-13 22:57:07 -07:00
Daniel Rosenwasser 3b6f4c1ba3 Merge pull request #20576 from fongandrew/patch-2
Update Enzyme version number
2017-10-13 22:21:19 -07:00
Andrew Fong 1b06f10a97 Update Enzyme version number
Previous updates to this type definition were for changes introduced in Enzyme 3.0 and 3.1, not 2.8.
2017-10-13 16:30:32 -07:00
Alexander Leon e21416d4a7 add missing option (#20401) 2017-10-13 15:19:04 -07:00
Szőke Szabolcs 1c2daecf2d react-virtualized: add missing properties to GridCellRangeProps, fix incorrect type for overscanIndicesGetter in Grid.defaultProps (#20412)
* react-virtualized: added missing properties to GridCellRangeProps

* react-virtualized: corrected type of overscanIndicesGetter in Grid.defaultProps

* react-virtualized: added name to "Definitions by" section
2017-10-13 15:18:51 -07:00
C Lentfort cfce6f295f Add typings for cleave.js (#20550)
* Add typings for cleave.js

Add typings for cleave.js and <Cleave> react component.

* Fix lint errors

* fixup! Fix lint errors

* fixup! Fix lint errors
2017-10-13 15:16:29 -07:00
Sergii Paryzhskyi 3a6713a0f9 Add definitions date-arithmetic package (#20555)
* Add type definitions and config to new package date-arithmetic

* Add tests for date-arithmetic package
2017-10-13 15:12:41 -07:00
Piotr Roszatycki 69737ccec9 ioredis: showFriendlyErrorStack option (#20459) 2017-10-13 15:11:17 -07:00
jakpaw 4ef648f6ea [lunr] Fix Index.query return value and add term to Clause (#20524) 2017-10-13 15:10:48 -07:00
Alvis Tang 547f6713f1 highland: add missing definitions & correct some others (#20446)
* chore(highland): add Alvis Tang as an author

* fix(highland): correct the definition of push

A push function should have a type of
```ts
(err: Error | null, x?: R | Highland.Nil) => void
```
such that it can accept
```ts
push(null, _nil);
```
to signal the end of the stream.

* fix(highland): add the missing defintion of uniq and uniqBy

See http://highlandjs.org/#uniq

* fix(highland): correct the definition of each

As a special case, `done` is allowed to attach to the stream after `each`.
See http://highlandjs.org/#each

* fix(highland): correct the definition of merge

The merge function should not take any argument. Also the return of a merged
stream should be the union type of the origins.

See http://highlandjs.org/#merge

* fix(highland): add the missing definition of toPromise.

See http://highlandjs.org/#toPromise
2017-10-13 15:10:28 -07:00
Azoson 97d6470bb0 [google-apps-script] Modify type definitions of functions which can return null (#20517)
* Fix type definition of `SpreadsheetApp.getActive`

* Fix type definition of `SpreadsheetApp.getActiveSpreadsheet`
2017-10-13 15:09:54 -07:00
nicholashza f7520ec7bc Add Howler 2.0.5 definitions (#20551)
Definitions for playerror and xhrWithCredentials introduced in Howler 2.0.5 https://github.com/goldfire/howler.js/blob/master/CHANGELOG.md#205-october-6-2017
2017-10-13 15:09:36 -07:00
kekraft 447df163c1 Fix left chunks and right chunks typing. (#20567)
leftChunks() and rightChunks() returns an array of MergeViewDiffChunk.
2017-10-13 15:09:17 -07:00
Brandon Matheson cd5ff7b75d Added CurrentUserIsSiteAdmin to ContextInfo (#20563) 2017-10-13 15:09:00 -07:00
neukym 2d3eb914e5 [@types/three] Adds morphTargetInfluences and morphTargetDictionary to mesh on three-core.d.ts (#20490)
* Adds morphTargetInfluences and morphTargetDictionary to mesh class

* Replaces morphTargetDictionary object type in three-core.d.ts
2017-10-13 15:08:35 -07:00
Kevin Greene ee3de0d55e [thrift] Update with an interface for struct-like classes (#20536)
* Additionally, mark Transport constructor args as optional
2017-10-13 14:54:32 -07:00
Arda TANRIKULU 795cd33932 Meteor's underscore and ServiceConfiguration types and new version for publish-composite are added (#20413)
* ServiceConfiguration types added

* New usage of publishComposite added to meteor-publish-composite

* meteor/underscore added
2017-10-13 14:54:04 -07:00
Flarna 7671753459 [redux-form] Fix tests by setting strictFunctionTypes to false (#20571) 2017-10-13 13:14:34 -07:00
Matthias Lochbrunner dfdf9e29ec Make RetryStrategyOptions.error of type NodeJS.ErrnoException (#20390) 2017-10-13 03:17:46 -07:00
Adrian Leonhard 601b1fa1d0 [fluent-ffmpeg] Added static ffprobe and fixed ffprobe. (#20391)
usage: https://github.com/fluent-ffmpeg/node-fluent-ffmpeg#reading-video-metadata
impl: https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/blob/master/lib/fluent-ffmpeg.js#L219
ffprobe returns void: https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/blob/master/lib/ffprobe.js#L86
2017-10-13 03:17:08 -07:00
Alexander Leon d9ca7d7eff add types for amapa (#20393) 2017-10-13 03:15:59 -07:00
Shenghan Gao e1228267bb Add types for Cytoscapejs (#20511)
* base (master) branch where all common changes start

* base (master) branch where all common changes start

* updated readme

* updated readme

* initial commit for cytoscape js

* update version

* added return types of void

* container can be jQuery

* container is not a jQuery but a get() works

* added style properties

* added style properties

* allow remove on CollectionElements

* added docs and algorithms

* added layout typings

* added layout intellisence and optional

* added missing elements from the api, may be broken

* incorporate CSS

* Remove OS restrictions

Previously, OS was restricted to only `linux`. However cytoscape.js does not appear to have any os restrictions defined in it's [`package.json`](https://github.com/cytoscape/cytoscape.js/blob/master/package.json).

* updated to match cytoscape 3.x

* updated version

* missing setter fro style

* target may not be present and type must be a string
That type can only be one of the specified event types.

* updated versions

* updated for IDE

* updated version to 0.0.1

* There is no known operating-system restriction.

* not an angular project

* type for cytoscapejs

* fixing types half way

* fix all travis errors and added some tests

* use HTMLElement instead of any for container

* add strictFunctionTypes
2017-10-13 03:15:35 -07:00
Chris Krycho dfa4555106 Update Ember, RSVP, and Ember testing helpers. (#20301)
* Update RSVP to 4.0, to implement PromiseLike<T>.

- RSVP Promises can now be used with `async` and `await`.
- RSVP types now match what is in RSVP 4.0.

* Update ember-testing-helpers for fixed RSVP.

* Ember.js: correctly represent most of the framework.

- Capture the actual behavior of most of the framework, including computed
  properties, custom getters and setters and the custom Object model more
  generally, prototype extension via `.extend`, and the mixin pattern.
- Support the new modules API alongside the global API.
- Add extensive tests.
- Update inline documentation.
- Use the new, async/await compatible RSVP definitions.

* Ember/RSVP: drop .prettierrc files.

* Drop types/rsvp/assert.ts -- stick to just rsvp-test.ts.

* Fix ember-testing-helpers-tests on top of module itself.

* Fix RSVP import in ember-testing-helpers.

* Fix 'typeRoots', set ember-testing-helpers to use TS 2.4.

* Fix missing 'types' compiler option.

* Fix errors caught by dtslint.

* A few more tslint tweaks.

* Fix account link in ember-testing-helpers authorship.

* Disable strictFunctionTypes for Ember, RSVP.

* fix array.reduce signature conflict in ts@next
2017-10-13 03:13:17 -07:00
Ingvar Stepanyan e176bdbdff Minor fixes/adjustments to ESTree (#20400)
* Minor fixes/adjustments to ESTree

 - Add `type: string` to base interface to allow only strings for `type` in any descendants.
 - Change `UnaryExpression::prefix` to `true` (since it can never be false and is just a backwards compatibility artefact).
 - Add absent / `null` as a valid `RegexpLiteral::value` (it's used by compliant parsers/tools when RegExp can't be natively represented).
 - Make `Literal::raw` optional to allow creating nodes without one.
 - Add missing `type` and location properties to `Comment` node.

* Update index.d.ts
2017-10-12 20:38:38 -07:00
Alexander Leon 48e3f82b80 improve definitions for attachments (#20392) 2017-10-12 18:33:47 -07:00
Mark Kornblum ff0a65d058 Add storybook/addon-info types (#20538)
* Add storybook__addon-info types for version 3.2

* Better return type

* Remove unnecessary compiler option
2017-10-12 18:32:16 -07:00
Ruben Taelman 7f298ec31e Add rdf-data-model typings (#20539) 2017-10-12 18:31:02 -07:00
Alexander Leon c7fcca390e add howler definitions for v. 2.0.3 (#20385)
* add more howler.js type definitions (#1)

* update index.d.ts

* add self-credit

* lint
2017-10-12 13:55:28 -07:00
Carlos Eduardo Scheffer 6ae1a432b9 fix base64 (#20387)
md5.base64 is not working because it is not in the interface
2017-10-12 13:54:42 -07:00
Jakub Korzeniowski 15dda2c9c9 [ramda] Improved definitions of type, head and last functions (#20332)
* Improved definitions of type, head and last functions

* Version bump

* Oops

* Linting

* no-unnecessary-type-assertion

* Removed version bump
2017-10-12 13:52:50 -07:00
Aluan Haddad be50516c67 Modernize the declaration as a hybrid UMD + explicit global (#20512)
* Modernize the declaration as a hybrid UMD + explicit global

* fix failing tests

* remove dependency on lib.dom.d.ts

* append own name to maintainers list

* add a tslint.json file; lint declaration; lint tests

* remove SystemJSSystemFields interface
move SystemJSSystemFields properties to System interface
add comments to additional members. reference: https://github.com/systemjs/systemjs/blob/master/docs/config-api.md#warnings

https://github.com/systemjs/systemjs/blob/master/docs/config-api.md#pluginfirst

* Update header as per code review.
2017-10-12 13:51:02 -07:00
Robert K. Bell 5cadfa2d5d [highland] Add the through stream method (#20508)
* feat: add `through` stream method

[docs](http://highlandjs.org/#through)

* doc: remove noisy todo
2017-10-12 13:48:31 -07:00
Andy fbdaba3edc pg-types: Remove "moment" dependency (#20525) 2017-10-12 13:47:52 -07:00
ohze.net a06c2aaba6 paho-mqtt: fix Message.{payloadBytes, qos, constructor} & add export = to module declaration (#20528)
* paho-mqtt: fix type of payload constructor param & member payloadBytes of class Message

* paho-mqtt: fix type of Message.qos & add `export = Paho.MQTT` to module 'paho-mqtt' & add some other test cases
2017-10-12 13:47:05 -07:00
Matanel Sindilevich e99171508a Type definitions for the Tress library (#20532)
* Adding .d.ts for the tress library

* Removing dev additions from the package.json

* Adding strictFunctionTypes to the tsconfig.json
2017-10-12 13:43:04 -07:00
segayuu 90649b73fe [Bluebird] cleanup lint errors (#20449)
* Cleanup Lint Error: ban-types

* Cleanup lint error: unified-signatures(exclude Promise.props())

* Cleanup lint error: array-type

* Setting max-line-length not to exceed current length

* Cleanup lint error: one-line

* Cleanup lint error: lintstrict-export-declare-modifiers

* [request] toJSON() return Object => object
2017-10-12 13:41:30 -07:00
Brandon Matheson 1587ff2a5c Resolve 20531 (#20533)
* Added ListTitle and SiteTitle to ContextInfo

* Added LastSelectedItemIID to RenderContext_InView
2017-10-12 13:38:09 -07:00
Gal Talmor 6333e37c8c Add File fields related to Multer S3 and fix metadata parameter type (#20339)
* Add File fields related to Multer S3 and fix metadata parameter type

* Update index.d.ts

* Add File fields related to Multer S3 and fix metadata parameter type

* Add File fields related to Multer S3 and fix metadata parameter type

* Add File fields related to Multer S3 and fix metadata parameter type
2017-10-12 02:25:55 -07:00
Sampson Oliver 2cdb812a31 stripe-node updated typings for webhook verification (#20382)
* Added stripe-node typings for webhook verification

- See example on the stripe-node github for webhook signing here: https://github.com/stripe/stripe-node/tree/master/examples/webhook-signing

* Updated stripe-node types version
2017-10-12 02:23:28 -07:00
Jacob Froman 972e5154d8 [react-native-google-signin] Add Typings (#20505)
* Add typings for react-native-google-signin

* Fix type in configure parameter

* Remove optional in favor of type | null
2017-10-12 02:22:49 -07:00