Commit Graph
66533 Commits
Author SHA1 Message Date
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 AnocetoandCarlos Quiroga 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 NelissenandAndrew M. 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
TypeScript Bot 03fddd7a3f Update CODEOWNERS (#41171) 2019-12-30 13:40:52 -08:00
PetrSvirak fbb9d39bea Add use-resize-observer types (#41042)
Types are defined for CommonJS module. While the source library has both a main
entry pointing to a CommonJS module and a module entry pointing to an ESM
module, TypeScript doesn’t yet have the ability to model both formats
side-by-side for the same module, so unfortunately one had to be picked.
2019-12-30 15:08:55 -06:00
Sergey Sychev 7963c011fb [@types/react-native] WebSocket (#40968)
* [@types/react-native] WebSocket

* [@types/react-native] WebSocket - fixed types in send method

* Fixed signature of constructor
2019-12-30 20:14:12 +01:00
Arne 805ad7183b Add openssi-websdk definition (#41214)
* Add openssi-websdk definition

* remove functions that are not exported by the js
2019-12-30 11:36:54 -06:00
Andrew Branch c08d2b5e4a [node] Fix CommonJS import of module (#41225) 2019-12-30 11:26:41 -06:00
ShuiRuTian 8b6f65181d [webpack] Remove properties that has been removed (#40877)
* remove Module.preLoaders, Module.postLoaders and Configuration.debug. These properties has been removed by webpack2.
2019-12-30 16:24:27 +01:00
Robert Krahn 62e76348ae Add types for bmp-js (#41199) 2019-12-30 09:02:10 -06:00
Roman Komarov a8fb783542 fixed to the react-table rc.15 definitions (#41278) 2019-12-27 20:26:09 -06:00
ggascoigneandRoman Komarov 1bf49129a6 react-table: port v7 types over from react-table repo (#40816)
* react-table: port v7 types over from react-table repo

Since the v7 version of react-table has a completely incompatible
interface to v6, and is also no longer including types in its v7
package, this changeset ports over the v7 types and moves the v6 types
into a sub-folder.

The interface isn't ideal, it depends upon interface merging to be
useful.  If anyone can offer suggestions as to how to fix this without
falling into the recursive definition problems of generating types based
upon plugins which themselves change the types that they are being used
to define, please let me know.

https://gist.github.com/ggascoigne/646e14c9d54258e40588a13aabf0102d

* mv utils.d.ts from tsconfig -> OTHER_FILES.txt

* test should now pass

* fix type for UseRowSelectState.selectedRowPaths

* upgrade to beta.28

* upgrade to rc.1

* upgrade to rc.3

* upgrade to rc.9

* update to rc.10, address review comments

* Use a generic for prop getters, minor fixes

* lint cleanup

Also added styles to `TableCommonProps` since that's what it's generally
used for in the plugin-hooks.

* add intermediate and address remaining review comments.

* update to rc.15, add readme

Co-authored-by: Roman Komarov <kizmarh@ya.ru>
2019-12-27 13:48:08 -06:00
Jinho Jeong ab1e00b92c Add @types/rebass__forms (#41258)
* Add @rebass/forms typing

* Use rebass's typing

* remove styled-components typing

* Add @rebass/forms path mappings

* Specify TypeScript version

* Remove exports

* Add custom omit type for compatibility

* Add textarea component on test file

* Label component uses Flex inside

* Remove module declaration

* Fix test
2019-12-27 10:34:52 -06:00
Devin xu 4b3c5a76a6 add new features (#41191) 2019-12-27 09:56:35 -06:00
LKHO dbad844829 [mongoose] export Document class, add DocumentQuery.map() (#40742)
* [mongoose] export Document class, add DocumentQuery.map()

* merge remote branch 'master'

* add test `new mongoose.Document()`
2019-12-27 09:54:45 -06:00
Vlad-Shcherbina ddf417283f dygraphs: Allow null in DataArray (#41193)
See for example http://dygraphs.com/gallery/#g/independent-series
2019-12-27 09:51:42 -06:00
everhardt 36cc7e0150 Update index.d.ts (#41271)
I'd rather not be involved in every pull
2019-12-27 09:50:15 -06:00
ExE Boss 8556324f73 feat: Add tape‑promise (#41268) 2019-12-27 09:49:14 -06:00
Tomasz Pluskiewicz 006d2106dd typings for @rdfjs/parser-n3 (#41232) 2019-12-27 09:38:56 -06:00
Tomasz Pluskiewicz 0d303e5ea8 fix(@rdfjs/namespace): builder can be called without params (#41231) 2019-12-27 09:37:58 -06:00
Artur Androsovych 97f91edc4d add worker-plugin types (#41223) 2019-12-27 09:36:57 -06:00
Alex Kessock a9fd0c12aa Add types for cypress-image-snapshot (#41222)
* Add types for cypress-image-snapshot

* Add optional parameters to matchImageSnapshot
2019-12-27 09:35:01 -06:00