Commit Graph
62352 Commits
Author SHA1 Message Date
-1 620c7af73c [cytoscape] fixed typos and added new style options (#35313)
* add and fix line-styles

* fix typo

* add text-wrap style

* add tests
2019-05-13 16:41:20 -07:00
Dhalton 179208b780 [styled-system] Fix definitions for mapProps and LowLevelStylefunctionArguments (#35265)
* Fix mapProps definition

* Test mapProps fix

* Fix LowLevelStyleFunctionArguments definition

* Test LowLevelStylefunctionArguments fix
2019-05-13 16:38:28 -07:00
Tim Whitbeck 967388ba23 fix type of SchemaProperties.document.text (#35245)
according to docs at https://docs.slatejs.org/slate-core/schema#text
can be either a RegExp or a function taking a string
and returning a boolean
2019-05-13 16:33:25 -07:00
handleyj 6bde72cd87 @types/mui-datatables: Export and clean up MUIDataTableState (#35246) 2019-05-13 16:32:16 -07:00
Joel Szwarga c3c951d939 Update typings to match current docs and api (#35294) 2019-05-13 16:31:14 -07:00
Florian Keller 34e0dac199 [fs-extra] Streamline version with package version (#35283) 2019-05-13 16:30:15 -07:00
Chris Shaffer 8fc7810ca3 Remove definitions for deprecated MapView (#35274)
Related to:  https://github.com/DefinitelyTyped/DefinitelyTyped/pull/35239
2019-05-13 16:27:51 -07:00
Trevor L c4edb7ea59 Add ignorePath option to koa-bunyan-logger RequestLoggerOptions (#35264) 2019-05-13 16:27:17 -07:00
Lorefnon e63cb5725e [route-parser] Improve type-safety by making the Route class generic (#35216) 2019-05-13 16:12:34 -07:00
Gregor Stamac 88e22907b4 [Jest] MockInstance functions should return self (#34936)
* [Jest] MockInstance functions should return self

* [Jest] MockInstance functions should return self

* [Jest] fixed tests

* [jest-when] WhenMock interface should extend MockInstance
2019-05-13 16:11:05 -07:00
Emmanuel Gautier dccf648e59 [Sequelize] update queryInterface addIndex (#35284)
* fix sequelize addIndex

* add deprecated sequelize index options

* create sequelize IndexType
2019-05-13 16:10:03 -07:00
Arsen a0efee5960 Support for relativeToWrapper and improved wrapper (#35295)
Wrapper option takes an HTMLElement as well as a string.
RelativeToWrapper was a recent addition to the library.
2019-05-13 16:05:52 -07:00
Jason Yu fadde892e8 bump version (#35288)
- added missing static methods for IANAZone and `FixedOffsetZone`.
2019-05-13 16:04:17 -07:00
Kaipeng Lu 2c7b9c4735 isDeleted func name (#35282) 2019-05-13 16:03:34 -07:00
Colby M. White 10c7136095 feat(chance): add option definitions for common methods (#35250)
* feat(chance): add option definitions for common methods

added definitions for the option parameters of common methods

* fix(chance): return array for locales

bug I introduced in #34523

* feat(chance): add capitalize option to word method
2019-05-13 16:03:10 -07:00
aNickzz 2d3f91e5f6 Bugfix and improvements (#35280) 2019-05-13 16:01:01 -07:00
Zach Posten 9ab4b7e9e1 React filepond: Expand server configuration type definitions (#35291)
* fix: Make server config props optional

* feat: Add type definitions for server config callback funcs

* test: Modify test to reflect server callbacks
2019-05-13 15:53:51 -07:00
Михайлов Антон 3db468885f [paper] Include Base class definition + type save getters and setters (#35285)
* [paper] Add Base class

* [paper] Type save getters and setters

* [paper] import/export test

* [paper] Fix: "Common mistakes"

* [paper] Tabs to spaces
2019-05-13 15:52:32 -07:00
grizzlysol fd9556065b Added Map and Calendar definitions (#35289) 2019-05-13 15:48:34 -07:00
Piotr Roszatycki 04b191fa7f util.promisify: compatible with the latest @types/node (#35270) 2019-05-13 15:47:22 -07:00
James Pace b3fae8a887 GetRoles should not accept an id parameter (#35260) 2019-05-13 15:40:32 -07:00
AbigailMcP ddf184c96f [@types/cavy] Update cavy types for beforeEach and useCavy functions (#35256)
* Add beforeEach and useCavy function types to Cavy

* Linting and version update
2019-05-13 15:39:16 -07:00
Julian Hundeloh 6b2d933449 fix: remove hapi-auth-jwt2 (#35255) 2019-05-13 15:37:42 -07:00
Christian 93a90edde2 fix(sharp): add missing modulate type (#35253) 2019-05-13 15:22:56 -07:00
Matthias Kunnen b60d757ef4 [oauth2orize] Typed errors (#35251)
See:
- https://github.com/jaredhanson/oauth2orize/blob/70608ed5384a0f57e4a840f733db6e75a998057b/lib/errors/authorizationerror.js
- https://github.com/jaredhanson/oauth2orize/blob/70608ed5384a0f57e4a840f733db6e75a998057b/lib/errors/oauth2error.js
- https://github.com/jaredhanson/oauth2orize/blob/70608ed5384a0f57e4a840f733db6e75a998057b/lib/errors/tokenerror.js
2019-05-13 15:21:37 -07:00
jlismore 32b5bf0bb7 Add promiseFiles and the sync version of files (#35237) 2019-05-13 15:19:59 -07:00
Jason fcd45613c0 pump: pump should return a single stream instead of an array. (#35238)
* Pump signature now returns a single stream instead of an array of streams.

* pump: Updates version and adds author
2019-05-13 15:18:59 -07:00
Andrew Schmadel 8cebff3068 Add an explicit dependency on hoist-non-react-statics (#35235)
Will hopefully fix #33690 by introducing a direct dependency on hoist-non-react-statics.

Unfortunately, the TS module-resolution algorithm will often grab the types from
hoist-non-react-statics v2.5.x (which is still widely-used, and included an internal .d.ts file) before finding @types/hoist-non-react-statics (which is what react-redux should actually be using).

Adding an explicit dependency on the (type-less) package appears to force the correct behavior.
2019-05-13 15:17:36 -07:00
Jaen 18bd08a386 chrome: make tabs.discard arguments optional (#35223)
These arguments are both optional, see: https://developer.chrome.com/extensions/tabs#method-discard
2019-05-13 15:07:41 -07:00
Cahil Foley b01a786c26 [mssql] Add Request.query tagged template overloads (#35212)
* Add missing query overloads

Add overloads to the `Request.query` method function to support using it as a tagged template.

* Update tests to include new signatures

Add tests for the tagged template query overload on the `Reqest` interface.

* Remove type declarations from tagged template usage

This usage is incompatible with older typescript versions.
2019-05-13 15:04:21 -07:00
Dimitar Nikovski 12c5676b0f Allow typing of RawDraftEntity (#35208)
It's helpful, when working with `RawDraftEntity`, to have a typed `data` property, whilst it still defaults to `{ [key: string]: any }`
2019-05-13 15:02:27 -07:00
Florian Keller 353eb17ad6 [underscore] Add generic type for memoize (#34994) 2019-05-13 10:59:04 -07:00
Mike Marcacci f832cffd77 Add graphql-upload (#35276) 2019-05-13 10:46:51 -07:00
Philipp Jean-Jacques 8484eda4b8 Added type definitions for apple-mapkit-js v5.4.0 (#35287) 2019-05-13 10:38:52 -07:00
breeze9527 bdd066eeb8 Add type definition of non npm package amap-js-api-arrival-range (#35290)
* [amap-js-api] update to v1.4.14

* Add definition for non npm package: amap-js-api-district-search

* Add type definition for non npm-package amap-js-api-line-search

* Add type definition of non npm package amap-js-api-arrival-range
2019-05-13 10:37:33 -07:00
Chappo c2e1a0acce [hast-format] Add types for HAST format 2.3 (#35293) 2019-05-13 10:34:09 -07:00
Connor Fitzgerald 35bae2bc43 Upgrade type definition for Oracledb to version 3.1.2 (#35127)
* WIP updating oracledb typings to 3.1.2

* WIP

* SODA WIP

* .d.ts done. Needs tests writing

* Finished

* Added pool stats methods. Fixed bug with BindParameter being string or number

* Making _enableStats optional

* Allow parameters to be nulled

* Capitalise namespace
2019-05-13 10:31:46 -07:00
Tobias Kraus d58e1fcc50 Updated "delaunator" typings to version 3.0 (#35165)
* Updated "delaunator" typings to version 3.0

* delaunator: fix wrong $ExpectType in test

* delaunator: export class -> export default class

* delaunator: handle both: UMD & ES module files.

* TypeScript >= 2.7 required

* flag 'esModuleInterop' in tsconfig required

* thanks @weswigham for the help
2019-05-13 10:30:29 -07:00
Dmitry Demensky 89341bfde5 [googlemap] Add LatLngLiteral support in LatLng (#35112) 2019-05-13 10:16:55 -07:00
Thomas den Hollander d13cc8f363 [react-autosuggest] Make suggestions readonly (#35135)
This PR makes suggestions a `ReadonlyArray`. This is a less strict requirement and should be a backwards-compatible change. The suggestions property is not modified in the component.

This change allows usage in components that themselves only have access to a `ReadonlyArray`.
2019-05-13 10:15:27 -07:00
David Pett d029b9765f made extracted and mask optional (#35180)
in the source code, there are conditional checks for both of these props. mask is not required for this to work and if you don't pass a mask prop, the extracted argument of the onChangeText callback is not sent
2019-05-13 10:10:02 -07:00
Romain Delamare 02daed3e94 scrypt-js: change types of password and salt to accept Array and Uint8Array (#35171) 2019-05-13 10:09:38 -07:00
Sean Roach 129ec7b668 [@types/line-by-line] Fixed stream use case (#35152)
* Overhauled the line-by-line package to be accurate.

The prior version of @types/line-by-line did not properly represent the
options used in creating a LineByLineReader and did not represent the
stream compatibility the package has. This overhauls the declaration
file to represent the package in both its use case of reading files and
readable streams, as well as supplying documentation as found on the
package's README.md.

* Overhauled the line-by-line package to be accurate

The prior version of @types/line-by-line did not properly represent the
options used in creating a LineByLineReader and did not represent the
stream compatibility the package has. This overhauls the declaration
file to represent the package in both its use case of reading files and
readable streams, as well as supplying documentation as found on the
package's README.md.

* Fixed code to conform to dtslint
2019-05-13 10:08:50 -07:00
Julian Gonggrijp 6fbf63ce7c Underscore: fix _.map IterateePropertyShorthand overload (#35181)
* Fix a type overload

* Add matching test

* Re-enable underscore linter rules that weren't violated

* Add myself to the list of underscore contributors
2019-05-13 09:54:38 -07:00
Brendan M e18af54e46 Add GraphQLJSONObject type to graphql-type-json definition (#35190)
* update graphql-type-json definitions

* update tests
2019-05-13 09:49:13 -07:00
yisraelx 498c398948 [showdown] fix and reorder definitions, add and fix docs (#35104)
* docs(ShowdownOptions): add and fix

* fix(ShowdownOptions): add missing props

* `encodeEmails`
* `rawPrefixHeaderId `
* `rawHeaderId`

* fix(ShowdownOptions): Mark `excludeTrailingPunctuationFromURLs` as deprecated

It now default behavior:
https://github.com/showdownjs/showdown/commit/d3ebff7ef0cde5abfc3874463946d5297fc82e78

* chore(Converter): order the method by the code order

https://github.com/showdownjs/showdown/blob/master/src/converter.js

* fix(Converter): add missing method `getFlavor`

* feat: add `Flavor` type for flavor names

* docs(Converter): fix and add

* chore(Showdown): order the mthods by the code order

https://github.com/showdownjs/showdown/blob/master/src/showdown.js

* fix(Showdown): Remove duplicate method definitions

* `getOption`
* `getOptions`
* `getDefaultOptions`
* `extension`
* `resetExtensions`

* fix(Showdown): add missing methods

* `getFlavor`
* `getFlavorOptions`
* `subParser`
* `validateExtension`

* fix(Showdown): fix incorrect definitions and order

* `setOption` - fix incorrect returns signature
* `getDefaultOptions` - fix incorrect args and returns signature
* `extension` - fix incorrect args and returns signature
* `ShowdownOptions` - support for custom options.
* `ShowdownOptionsSchema` - new interface to describe showdown options schema(`getDefaultOptions` method)
* `ShowdownExtensions` - new interface to describe showdown extensions store.
* `SubParser` - new type to describe showdown SubParser (`subParser` method)

* docs(Showdown): fix and add

* fix(ConverterOptions): incorrect property type of `extensions`

* fix: incorrect arg (`extension`) type of several method signatures

* test: fix and add

* fix(ShowdownExtension): add missing support of event listener

* add missing property 'listeners' type `Extension` (for listener extension and mixing)
* add new interface to describe showdown event listener function.

* fix(Converter): add missing `listen` method
2019-05-13 09:45:48 -07:00
Mateusz Sokola d116b4da12 [@types/enzyme] getDOMNode contains vague return type (#35179)
Closes: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/35178
2019-05-13 09:44:31 -07:00
Mihail Ilinov 56b0ba7c44 Multiple sortBy (#35195)
https://isotope.metafizzy.co/sorting.html#multiple-sortby
2019-05-13 09:42:58 -07:00
Andi Pätzold edbddd61ad [pdfmake] content can be an array (#35191)
* fix(pdfmake) style must be a string

* fix(pdfmake) content can be an array

* fix(pdfmake) add myself as author

* fix(pdfmake) use Array<> instead of []
2019-05-13 09:42:50 -07:00
Carl 6360f56562 [@types/stripe] add optional name and phone to customer related interfaces (#35146)
* add optional name and phone to customer related interfaces

* remove unnecessary comma
2019-05-13 09:42:01 -07:00