Commit Graph

67002 Commits

Author SHA1 Message Date
Timm Stelzer
827e5dac59 Fix publish and sendToQueue signatures. (#41217)
As per the
[documentation](https://github.com/benbria/node-amqp-connection-manager#amqpconnectionmanagercreatechanneloptions), the
`content` field in `publish` and `sendToQueue` can be a plain object, when `createChannel`s `json` option is set.

This commit extends the `content` parameter of those two functions. The change should be backwards compatible, as we're
loosening requirements.

Fixes #37295
2020-01-02 16:58:11 -08:00
Steven
533f14207e Add context and hooks (#41200) 2020-01-02 16:57:33 -08:00
Chris Atkin
809c9fe482 Add types for knuth-shuffle (#41259)
* Add types for knuth-shuffle

This adds types for the [`knuth-shuffle`](https://www.npmjs.com/package/knuth-shuffle)  package.

* Correct return type to be same as passed array

This corrects the return type for the `knuthShuffle` function, as it returns an array of the same type (specifically, the same array!), rather than `void`.

* Correct tests
2020-01-02 16:55:32 -08:00
Daniel Durante
fe47c041d5 Pg: Adds a boolean value for PoolClient.release's support for truthy and error values (#41040)
* Formats code

* Adds boolean value for Pool.release's support for truthy and error values
2020-01-02 16:43:53 -08:00
Hossein Saniei
c7ce2f4b92 prevent incorrectly infering Joi.object type from user provided schema 2020-01-02 16:07:21 -08:00
Haseeb Majid
5eeffbdb87 Added react-native-share-extension (#41306)
* Added React Native Share Extension

* Fixed Linting Issues

Fixed linting issues, added tests.

* Fixed other linting issues

Data returns a promise.

* Removed Public from state

Removed public from state.
2020-01-02 15:56:33 -08:00
Piotr Błażejewicz (Peter Blazejewicz)
bf8cc8a772 feat(angular-wizard): setEditMode method definition (#41244)
- docs
- test

Thanks!s
2020-01-02 15:55:58 -08:00
Benjamin Schuster-Boeckler
c1bea6ce63 creates definitions for @Pager/jackrabbit (#41330)
* Fixes incorrect return types in diff-delta and blob. Should be functions, not direct accessor properties. Also, `rawcontent` returns a wrapper around a Buffer, not a Buffer directly, as `content` does.

* updated package description and version

* fixed missing argument

* Updates jackrabbit types to export namespace for interface and type access. Adds missing options and arguments to a few methods.

* fixed linting issue

* revert changes to jackrabbit

* Creates type definitions for the pagerinc fork of jackrabbit which is the more supported version. The original types for jackrabbit actually don't work, while this one is actually tested.
2020-01-02 15:43:51 -08:00
Nikita Balikhin
007889e18b @types/draft-js fix customStyleFn return type (#41276) 2020-01-02 15:40:17 -08:00
Aankhen
4cd3d19955 koa__cors: Allow origin to be a function returning a promise. (#41288) 2020-01-02 15:38:50 -08:00
Piotr Błażejewicz (Peter Blazejewicz)
383991ddb5 feat(react-toast-notification): align with version 2.4.0 (#41249)
- remove `pauseOnHover` property
- add `removeAllToasts` and `updateToast` hooks
- mark `callback` option optional in `removeToast` hook
- extends options with `UpdateOptions` variant to provide optional
content property
- rewrite tests to cover all hooks and provider properties
- version bump

Thanks!
2020-01-02 15:21:32 -08:00
Adam Haglund
a7b63a4e6a [color]: Show colors in types for developer QOL (#41265)
* add generic for developer QOL

* add to contributors

* fix types to be correct

* fix ColorParam type in test

* remove unnecessary function

* remove unnecessary generics

* use generic

* update ts version
2020-01-02 15:20:45 -08:00
Dương Tấn Huỳnh Phong
e6e25944e6 [passport-facebook-token]: add fbGraphVersion for StrategyOptions (#41264) 2020-01-02 15:19:57 -08:00
Hendrik Röhm
e875d1c18b plot.ly add showlegend to PlotData (#41261)
According to the [documentation](https://plot.ly/javascript/reference/#scatter-showlegend), showlegend is available for all plot data types.
2020-01-02 15:19:41 -08:00
magonzalez9
0f375a72b5 Add types for react-mathquill (#40861)
* Add types for react-mathquill

* Fix formatting issues

* Fix typescript header version

* Remove single quote character from typescript version header

* Fix typing for function

* Add type definitions for @edtr-io/mathquill and update react-mathquill to reflect that.

* Add paths property to @edtr-io/mathquill tsconfig

* Fix dt-header package version

* Update types/react-mathquill/index.d.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/edtr-io__mathquill/edtr-io__mathquill-tests.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/react-mathquill/tsconfig.json

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/react-mathquill/index.d.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/react-mathquill/index.d.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/react-mathquill/index.d.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/react-mathquill/index.d.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

* Update types/react-mathquill/react-mathquill-tests.tsx

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>

Co-authored-by: Dmitry Demensky <10235949+demensky@users.noreply.github.com>
2020-01-02 15:18:03 -08:00
chiuhow
20755a9214 Add type definitions of source and layer components (#41207)
* add type definitions of source and layer components

* change the definition of the properties of Layer component
2020-01-02 15:16:29 -08:00
AN602
3e26a8222d Add types for getPerformance() and extend Options interface with trackPerformance flag (#41340) 2020-01-02 15:15:38 -08:00
Litichevskiy Dmitriy
c28f8c4da5 Services collection name was fixed (#41331) 2020-01-02 15:14:56 -08:00
Honza Kalfus
2474bc969f react-widgets: Fixed allowed values for onToggle and defaultOpen props (#41328) 2020-01-02 15:14:34 -08:00
newt
8af1edaa96 [mongoose] Add useUnifiedTopology to ConnectionOptions (#41329)
* Add useUnifiedTopology to ConnectionOptions

useUnifiedTopology is the flag for using the new Server Discovery and Monitoring engine instead of current (deprecated) one.

* Update the tests to include useUnifiedTopology
2020-01-02 15:13:29 -08:00
Simonas Gildutis
4a2ff32fde [react-native-material-textfield] Add formatText to TextFieldProps (#41319)
* Add formatText to TextFieldProps

* Remove whitespace
2020-01-02 15:12:20 -08:00
Benjamin Schuster-Boeckler
158b37a44f Fixed incorrect types in nodegit class DiffDelta and Blob (#41314)
* Fixes incorrect return types in diff-delta and blob. Should be functions, not direct accessor properties. Also, `rawcontent` returns a wrapper around a Buffer, not a Buffer directly, as `content` does.

* updated package description and version

* fixed missing argument

* Updates jackrabbit types to export namespace for interface and type access. Adds missing options and arguments to a few methods.

* fixed linting issue

* revert changes to jackrabbit
2020-01-02 15:11:55 -08:00
Guo Yunhe
98a81158b7 react-syntax-highlighter: add cjs format support (#41345) 2020-01-02 15:11:24 -08:00
Gene Sumchenko
926b2c951f Add 'additionalMetaSchemas' prop to react-jsonschema-form (#41257) 2020-01-02 10:39:45 -08:00
Raschid J.F. Rafeally
68e233902f feat(parse/Query): add generic type check for modifiers functi… (#41051)
* fix(parse/Object): attributes in constructor should be optional

* refactor(parse/GeoPoint): update constructor params

* feat(parse/Query): add generic attr check for functions

* lint(parse): fix lint issues

* feat(parse/Query): key types for matchesKeyInQuery()

* refactor(parse/Query): add base attrs to query checks

* feat(parse/Query): check type for value params in modifiers

* refactor(parse/Query): remove unnecessary Extract<> from modifiers

* feat(parse/Query): support Pointer for Object attrs in equalTo()

* improve(parse/Query): infer return type for distinct()

* fix(parse/User): attrs param should be optional even for non generic
2020-01-02 10:39:16 -08:00
Dispatch
5a19d2744c [swagger-ui-express] Add explorer to opts (#41312)
Template below, this adds `explorer` to the `SwaggerUiOptions` because currently if you try to use this option with swagger-ui-express typescript will throw an error incorrectly. 

You can see that [on this line](https://github.com/scottie1984/swagger-ui-express/blob/master/index.js#L148) it's using the `explorer` property from the options object, and is recommend in the [readme](https://github.com/scottie1984/swagger-ui-express/blob/master/README.md) as well, so this is the correct syntax.

`isExplorer = opts.explorer`

- [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.)
- [ ] Add or edit tests to reflect the change. (Run with `npm test`.)
- [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).
- [ ] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

Select one of these and delete the others:

If adding a new definition:
N/A

If changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://github.com/scottie1984/swagger-ui-express/blob/master/index.js#L148
- [ ] If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header.
- [ ] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`. If for reason the any rule need to be disabled, disable it for that line using `// tslint:disable-next-line [ruleName]` and not for whole package so that the need for disabling can be reviewed.
2020-01-02 10:38:17 -08:00
Piotr Błażejewicz (Peter Blazejewicz)
3d035b0a86 feat(cli-progress): update creation options (#41263)
- `align` added in 2.1
- `hideCursor` update allowed type definition changing the property
documentation to reflect change
- tests updated

Thanks!
2020-01-02 10:35:50 -08:00
Tomasz Pluskiewicz
f85a085e48 adjust return types from safe clownface (#41296)
* adjust return types from safe clownface

* style: tslint fixes
2020-01-02 10:35:28 -08:00
Brent McSharry
7bd6f85442 value validators accept number or date (#41307)
* value validators accept number or date

* update vue dependency to latest
2020-01-02 10:34:06 -08:00
Henrique Cunha Fonseca Torquato
6128208a97 [blip-sdk] Added analysis call parameters (#41350)
* Added type definition for blip-sdk

* - Removed non used test file reference;
- Fixed lint rule errors.

* Added analysis filter parameters

* Fixed linting

* Updated package version

* Removed patch version from header
2020-01-02 10:32:12 -08:00
Carlos Anoceto
28b3aff301 HoverRadius support (#41294)
Co-authored-by: Carlos Quiroga <carlos.quiroga.informatica@gmail.com>
2020-01-02 10:25:24 -08:00
Adriel Codeco
ae61428323 [braintree] verificationAmount written like verificationAcmount (#41280) 2020-01-02 10:22:08 -08:00
Mark Nelissen
e007bade45 [react-places-autocomplete] add session token to searchOptions (#41295)
* add session token to searchOptions

* add to maintainers

* update typescript version

* Update types/react-places-autocomplete/index.d.ts

Co-Authored-By: Andrew M. <r3nya@ya.ru>

Co-authored-by: Andrew M. <r3nya@ya.ru>
2020-01-02 10:21:04 -08:00
TSL
c794e7209b React router guard (#41333)
* Add types react-router-guard package

* Add test for react-router-guard package

* Export for Loadable react-loadable

* Remove file react-router-guard-test.ts
2020-01-02 10:07:54 -08:00
Ngô Quang Dương
bbeec088c3 🤖 Merge PR #41323 [cassandra-store] Create declaration file by @QuangDuong120198
* Declaration file for cassandra-store

* Remove @types/express and @types/express-session
2020-01-02 10:00:09 -08:00
Christian Stornowski
5d5716a9c3 Updated to match for newest vue2-datepicker version (#41341) 2020-01-02 09:49:27 -08:00
Wesley Tsai
ba283aae0d [testing-library__dom] Fix async bound queries (#41237)
* Update get-queries-for-element.d.ts

Fixes bound query types for queries with waitForElementOptions

* Add tests

* Adding self to package header
2020-01-02 09:47:11 -08:00
Piotr Błażejewicz (Peter Blazejewicz)
ca73215c06 feat(react-stripe-elements): handleCardAction. Closes #41281 (#41285)
https://stripe.com/docs/js/payment_intents/handle_card_action
https://git.io/JeNlO

Thanks!
2020-01-02 09:46:49 -08:00
Thomas Sondergaard
a125cc10fc argparse: ArgumentOptions.metavar can be an array (#41283)
This is essential for useful docs for nargs >= 2.

https://docs.python.org/dev/library/argparse.html#metavar says this
about metavar and nargs:

Different values of nargs may cause the metavar to be used multiple
times. Providing a tuple to metavar specifies a different display for
each of the arguments.
2019-12-31 15:33:55 -08:00
Matteo Frana
8394dae20e checkedChildren and unCheckedChildren are optional (#41274)
* QueryOptions: added refetchIntervalInBackground, refetchOnWindowFocus, initialData

* Removed extra space

* Removed patch version number

* Fixed initialData optional and of type TResult

* checkedChildren and unCheckedChildren are optional
2019-12-31 15:33:37 -08:00
pheromonez
57a1baaa4f [google__maps][@google/maps] Only allow calling asPromise() if client supports it (#41138)
* Update [google__maps]

* Only allow `asPromise()` to be called if client was created with Promise support

* Add explicit type for GoogleMapsClientWithPromise, to remove reliance on Conditional Types

* Apply review comments
2019-12-31 15:23:52 -08:00
Grimmer
6202437f4f Add typePojoToMixed to mongoose SchemaOptions (#41290) 2019-12-31 15:22:45 -08:00
Peter Matta
74fa9e11a4 Update react-native-zeroconf types to v0.11 (#41284) 2019-12-31 15:22:10 -08:00
Honza Kalfus
90a56d675d Improved type definitions for react-widgets (#41270)
* Improved type definitions for react-widgets

* Revert "Improved type definitions for react-widgets"

This reverts commit 39cb0bc135b2771e9910f5eb9ee93e420d6045da.

* Added tests for default exports

* Removed all uses of deprecated React.Props type

* Removed unused interfaces

* Don't import whole React, but only what's needed

* Export all interfaces using the "declare namespace" trick

* Lint ignore (imports are used to verify that exports are available)
2019-12-31 15:21:45 -08:00
Rudi Chen
cf41279e00 updates typings to update 9 (#41102) 2019-12-31 15:20:50 -08:00
Kevin Brown
ba63399ef3 Added some field config options. (#41203) 2019-12-31 15:20:14 -08:00
AlCalzone
1d52577a72 [iobroker] add getObjectList[Async] to the adapter interface (#41272) 2019-12-31 15:19:53 -08:00
Per Bergland
98feb5a0f0 Add useTracker (react-meteor-data 2.0.0 or later) (#41318) 2019-12-31 15:18:49 -08:00
Rob Moran
f0470ebc13 🤖 Merge PR #41292 [w3c-web-usb] Complete strongly-typed EventTarget functions by [object Object] 2019-12-31 13:28:07 -08:00
cyberblast
8e64582fd3 🤖 Merge PR #MDExOlB1bGxSZXF1ZXN0MzU3ODA1ODE5 - add types/cyberblast__webserver
* add types/cyberblast__webserver

* fix minor bugs
2019-12-31 09:16:10 -08:00