Commit Graph

48128 Commits

Author SHA1 Message Date
Louis-Dominique Dubeau
e425a450ce node: add the 3rd parameter to URLSearchParams.forEach (#27732)
The documentation for [URLSearchParams.forEach][1] shows that the
callback function will be called with 3 parameters. This has been true
since Node 6. This commit adds a definition for the 3rd parameter to
the definition files for Node 6, 7, 8, 9 and 10.

[1]: https://nodejs.org/api/url.html#url_urlsearchparams_foreach_fn_thisarg
2018-07-31 15:43:02 -07:00
Scott Trinh
9a41d9b636 [knex] Multi-column whereIn clauses with subqueries and QueryCallbacks (#27727)
* Allow specifying multi-column whereIn clauses

* Allow subqueries and callbacks in WhereIn interface

* Use Value instead of string for values

* Use union type to make WhereIn more concise

Also remove duplicated WhereIn interface
2018-07-31 15:41:53 -07:00
Junyoung Clare Jang
d42bb4a536 Add type definition for figlet (#27705)
* Add type definition for figlet

* Remove method interfaces
2018-07-31 15:41:07 -07:00
Horus Lugo
ca3b5ac683 Update definitions of @types/react-portal 4.0 (#27702)
* Adds typings for react-portal 4.0

* Extend interfaces with React.Props<any>

* Updates required TypeScript version for react-portal@3.0.
2018-07-31 15:34:23 -07:00
Banst
13fed7d346 [lazy.js] Add missing methods and fix args on TestCallback (#27604)
* 🐛 add missing attribute to Pipeline interfacce

* Revert "🐛 add missing attribute to Pipeline interfacce"

This reverts commit d45b38583de61af98cd4f749ff8b27b6d8801c37.

* 🐛 add missing attributes to Pipeline interface (without auto format)

* 🐛 add second arg to TestCallback and complete sequence definitions
2018-07-31 15:09:24 -07:00
Emmanuel Gautier
e20d154eb6 umzug mongodb storage (#27547)
* umzug mongodb storage

* make mongodb storage connection optional
2018-07-31 15:01:44 -07:00
denisname
c252eedb85 d3-hierarchy: JsDoc (#27619)
* Use `this` to simplify HierarchyXxx Interfaces

* Add JsDoc

* Add test and remove `size(null)`
2018-07-31 12:33:50 -07:00
Christoph Koseler (Akelius)
c47fec2e66 Add declarations to create Transaction from ConnectionPool and Request from Transaction (#27728) 2018-07-31 12:26:56 -07:00
Dave Welsh
b3be281d3c koa-joi-router: updated to match usage instructions on koajs/joi-router (#27704)
* koa-joi-browser fixes

* fixed linting errors
2018-07-31 12:22:16 -07:00
Søren Louv-Jansen
6e755bfc1b [@types/node] Add missing props to error in child_process.exec (#27708) 2018-07-31 12:20:16 -07:00
Junyoung Clare Jang
080c946cb2 [tinycolor2] Update overall types to be more strict (#27712)
* Update tinycolor2 types not to expose internal types globally

* Update dependents of tinycolor2
2018-07-31 12:19:24 -07:00
Marco Siviero
f2b320da5b google-cloud__pubsub - Added publish message attributes definition as attributes in publish() method can only have string-like values (#27719)
* Added publish message attributes definition

* Moved Attributes definition into Publisher Namespace
Update project url
2018-07-31 12:17:58 -07:00
Charles-Philippe Clermont
fd56cfedfd Remove charlespwd from ramda authors (#27725) 2018-07-31 12:16:34 -07:00
Leonid Logvinov
c903fc1a0d Add types for eth-lightwallet (#27690) 2018-07-31 11:59:55 -07:00
David Kevork
25ea12a5d2 Added declaration of JodusNodus/react-qr-reader (#27665)
* Added declaration of JodusNodus/react-qr-reader

* lint fix

* Fix react-qr-reader issues

* Fix delay type and add event param for onImageLoad func
2018-07-31 11:48:12 -07:00
bartek szczepański
ac91f0945d Update types of uri-templates to be up to date to new version. (#27559)
* Update types of uri templates.

* Improve types.

* Improve types in test.
2018-07-31 11:45:10 -07:00
Hatem Mostafa
67fea12e53 Added string to widget_base_dimensions, since auto is an allowed keyword (#27564)
* Added string to widget_base_dimensions, since auto is an allowed keyword

* Added a test for widget_base_dimensions with width as auto

* Code review changes to allow only auto instead of string
2018-07-31 11:42:48 -07:00
Sérgio Freitas
f11a334248 video.js - complete definitions for video.js api (#27515)
* Update index.d.ts

Added definitions for almost every class

* Update tslint.json

Added rules to have module declaration support

* Update index.d.ts

Removed empty jsdoc comments

* Update video.js-tests.ts

Removed non existing size method call

* Update tslint.json

Disable no-redundant-jsdoc and void-return rules

* Update index.d.ts

Moved components option types one level up from the component specific namespace

* Update video.js-tests.ts

Removed default import signature

* Update index.d.ts

Fixed videojs.dom.getPointerPosition function return type from Coordinates to Dom.Coordinates

* Update index.d.ts

Removed redundant declare module
change default export to =

* Update tslint.json

removed no-single-declare-module and no-declare-current-package disabling rules

* Update tslint.json

ups...

* Update tslint.json

ups again...

* Update index.d.ts

Changed Tech.SourceObject type option to be optional

* Update tslint.json

disabled 'no-redundant-jsdoc-2' rule

* Update index.d.ts

Removed types from @param and @return JSDoc tags set it compliant with no-redudant-jsdoc-2

* Update tslint.json

Enabled no-redundant-jsdoc-2 rule
2018-07-30 16:02:02 -07:00
Elizabeth Samuel
eba49a9321 office-js: tweak info about getEntities and getEntitiesByType (#27710) 2018-07-30 15:56:47 -07:00
Jack Sorrell
593d4f0431 Add typings for thepiratebay (#27709) 2018-07-30 15:55:48 -07:00
Leonid Logvinov
d621d5c0fc Add types for web3-provider-engine (#27707) 2018-07-30 14:33:35 -07:00
Mike North
b80b4b5e94 [@types/qunit] extract callback argument types to interfaces (#27616)
* fix: extract QUnit callback argument types to interfaces

* move event callback interfaces into QUnit namespace

* Combine function argument type assertions into function declarations
2018-07-30 14:29:18 -07:00
Romain Faust
bb6b63a59b [@types/koa-html-minifier] Add type definitions (#27691)
* Add koa-router's Router to koa's Context

* [@types/koa-html-minifier] Add type definitions

* Fix incorrect TypeScript version
2018-07-30 13:08:58 -07:00
Art
f20b7f5323 Add: req-cwd types (#27674)
* add req-cwd types

* Set typescript version to 2.3

* Fix lint issues
2018-07-30 13:05:46 -07:00
Leonid Logvinov
9dd304c111 Add types for detect-node (#27684) 2018-07-30 12:53:09 -07:00
dkorolev1
5ecc5c6e55 react-adal (#27675)
* Definitions for react-adal

* empty line remove

* ts version
2018-07-30 12:49:39 -07:00
Garrett McCullough
cca37a570a Add location state as an optional parameter for Location types in History and React Router (#27699)
* Add optional location state parameter to Location types

* Revert styling changes

* Revert styling changes

* Missing quote mark

* Revert some other changes

* update TS version on qhistory
2018-07-30 20:38:55 +01:00
JounQin
84b265e5b9 feat: add declarations for hoist-non-react-statics (#27673) 2018-07-30 12:36:31 -07:00
Bond
31c4ba6176 Make custom backoff strategies optional (#27698) 2018-07-30 12:36:23 -07:00
Andy
7d44adf211 bull: make backoffStrategies optional (#27697) 2018-07-30 12:18:16 -07:00
Michael Zlatkovsky
9a8bb65edb Fix erroneous typings for "charts.add" and "chart.setData" (#27694)
* Add empty placeholder for host-specific powerpoint APIs
(for use with our d.ts publishing toolchain)

* Add extra separator

* Fix erroneous typings for "charts.add" and chart.setData
It erroneously said "Range | string", but it can only be a Range.
2018-07-30 12:17:18 -07:00
Johannes Henninger
7f227d28c9 Add type definitions for the WebAssembly Web API (#27663) 2018-07-30 12:15:37 -07:00
Tyler Zhang
56325613ee Add react-native-calendars typings (#27654)
* initial type definitions

* space out comments more

* match pros to be closer to documented proptypes

* indent tetss using 4 spaces

* fix specs
2018-07-30 12:15:15 -07:00
Max Loeb
7f59e2096e [jquery.fileupload] fix add signature (#27653)
* fix add args

* simplify

* ws

* ws

* update version number
2018-07-30 12:13:46 -07:00
Melvin Groenhoff
37ee427df7 Depend on @babel/parser instead of babylon (#27596) 2018-07-30 12:10:18 -07:00
Tomas Brambora
bee839cc6d Remove unused template type (#27589) 2018-07-30 12:08:10 -07:00
Jurand Niemczycki
f8485f6311 espruino: added boolean to digitalwrite (#27577)
* espruino added type for wifi module for access point

* espruino added myself to definitions

* changed tabsize to 4

* espruino: added boolean to digitalwrite
2018-07-30 12:00:47 -07:00
Resi Respati
d738494b08 [next] recover old router events APIs (#27695) 2018-07-30 12:00:41 -07:00
S McDowall
d4b5c5d411 Fix problem in definition when passing a function in the origin: option field. (#27576)
* Fixed type for function passing to cors() origin

If you look at the actual code within @koa/cors and where it invokes any passed function within the origin: option, it invokes it with ctx, the standard Koa context, NOT the Request.  Here is the code fragment..

b5a937fc24/index.js (L58)

Thus changed the signature of the origin option to reflect this.

* Revert back to single quotes -- stupid prettier

Fixed type for function passing to cors() origin

If you look at the actual code within @koa/cors and where it invokes any passed function within the origin: option, it invokes it with ctx, the standard Koa context, NOT the Request.  Here is the code fragment..

b5a937fc24/index.js (L58)

Thus changed the signature of the origin option to reflect this.
2018-07-30 11:59:05 -07:00
Mike North
039caf4113 QUnit assert.step and assert.verifySteps (#27558) 2018-07-30 11:48:14 -07:00
Tim Hwang
7d909e1f56 redux-form: Remove label from Field interface (#27502)
This was added to DefinitelyTyped in PRs #21204 and #24041. However,
both reasons given are incorrect: this prop is indeed featured in the
examples, but only used for a sample component also defined for demo
purposes. `props.label` is not a part of the `redux-form` `<Field/>`
API, and as such shouldn't be included.

One reason is because `props.label` should be up to users to implement.
If a user wants `props.label` to support React nodes instead of just
strings, they can no longer just extend DefinitelyTyped interfaces
because this causes an incompatibility with the set string type.

I realize this change might cause backwards compatibility issues for
users who are already using a `label` prop, as it's a ubiquitous
pattern. Looking for input on how to properly proceed with this. Thanks!

------

Please fill in this template.

- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.) *NOTE: I am getting `File name must be camelCase` both before and after my change*
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

Select one of these and delete the others:

If changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://github.com/erikras/redux-form/blob/master/src/createField.js ctrl-F label; no result
- [ ] Increase the version number in the header if appropriate.
- [x] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.
2018-07-30 11:37:38 -07:00
Roger
8b490c354b Less - add refresh, importManager, sheets, modifyVars callback. (#27443)
* Add refresh method, importManager, sheets and modifyVars method callback.

* Add a few less tests for their new methods.
2018-07-30 11:32:49 -07:00
confususs
bbd49ba4ed [backbone.marionette] Added parameter for model to childview function of CollectionView (#27441)
* Added model param to childview function of CollectionView

* Added private property to MyOtherView to ensure type difference
2018-07-30 11:26:04 -07:00
Kris Kalavantavanich
096acdd72f [slack-mock] New typings for slack-mock (#27440)
* Add types for slack-mock

* Add library specific types

* Fix lint

* Reorganize imports
2018-07-30 11:24:58 -07:00
Endurance Idehen
46ef7e1ffc @types/React-Select: Add ability for arrow renderer prop to be set to null (#27342)
* Add ability for arrow renderer prop to be set to null

In this issue, arrow rendering would keep the functionality even if no arrow was being rendered.

The PR below fixed the issue.
https://github.com/JedWatson/react-select/pull/1761

In this PR, the guys added the ability to set the arrowRenderer option to null, which disables all arrow related operation.

The types repo needs to reflect this change.

Thanks!

* Add my name to list
2018-07-30 11:22:32 -07:00
Jiayu Liu
057310a95d addint definitions for @tinajs/tina-redux (#27231) 2018-07-30 11:20:51 -07:00
Romain Faust
16b85f0e2f [@types/gulp-imagemin] Add type definitions (#27692)
* Add koa-router's Router to koa's Context

* [@types/gulp-imagemin] Add type definitions
2018-07-30 11:19:01 -07:00
Vinay Raikar
9e7f1e9d6f Correct the promise resolution type for jobs method (#27649) 2018-07-30 11:11:25 -07:00
slyrz
3e8a84c281 Update API to version 1.6 (#27658) 2018-07-30 11:10:22 -07:00
error
43de02ea1d add bson/Int32 to exports (#27662) 2018-07-30 11:08:07 -07:00