Commit Graph
62341 Commits
Author SHA1 Message Date
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
Tim Zook 2deba96b71 [@types/node] Fix generateKeyPair optional cipher and passphrase (fixes #33788) (#35091) 2019-05-13 09:41:03 -07:00
TypeScript Bot 8dfc211b7e Update CODEOWNERS (#35379) 2019-05-13 08:27:17 -07:00
Nathan Shively-Sanders 2194a1ac8b fix lodash's Collection.groupBy return type (#35347)
* fix lodash's Collection.groupBy return type

should be

```ts
Object<Dictionary<T[]>>
// not
Object<Dictionary<T>>
```

* Fix String and update tests
2019-05-10 11:02:34 -07:00
El Yousfi Naoufal 0250e5f778 Removing my name from react-native types (#35348) 2019-05-10 18:53:11 +02:00
Ceyhun Ozugur 762ae29bf4 [react-native] Improve PermissionsAndroid types (#35286)
* Improve react-native PermissionsAndroid types

* Add tests to react-native PermissionsAndroid types

* End file with a newline
2019-05-10 18:51:17 +02:00
Erin Noe-Payne 44022e0f1f remove reference to styled components css prop (#35296) 2019-05-10 14:59:25 +09:00
Mike Marcacci 03089e3d4c Add fs-capacitor types (#35277)
* Add fs-capacitor types

* add reference for node types

* remove redundant reference

* Fix test
2019-05-09 11:17:00 -07:00
Micah Zoltu eeb27b323d Fixes up elliptic type definitions. (#35278)
Both `keyFromPrivate` and `keyFromPublic` work with Uint8Array.  `keyFromPublic` accepts anything with a length and an indexer, though I'm not sure how to correctly setup the types for that.  `keyFromPrivate` works with anything that `BN` works with as input, which includes `Uint8Array`s.

The only valid value for `enc` in `getPublic` and `getPrivate` is `hex`, so I narrowed the type on those to only support that instead of `string`.

The `compact` boolean on `getPublic` with an `enc` parameter set to anything other than `hex` will yield `[ this.getY().isEven() ? 0x02 : 0x03 ].concat(x)`.  I chose the string 'array' as an opinion here so at least future readers of code written to use that overload of `getPublic` can have an idea of what they are getting out when they pass something besides `'hex'` in.  (note: if nothing is a falsy value for `enc` is provided when `concat` is truthy, the function will behave the same as if no parameters were passed).
2019-05-09 11:11:47 -07:00
briwa 12c5be1de5 feat(types): add sylvester-es6 (#35261)
* feat(types): add sylvester-es6

* refactor(types): readonly array

* chore(tsconfig): strict function types

* refactor(types): type fixes

* refactor(types): use the old github project url

because seems like it is the one that it supports

* refactor(types): typo

* refactor(types): some more typos

* refactor(types): use a non-readonly array

as it turns out, the array does get modified in the code or when using it

* refactor(types): linting
2019-05-09 10:50:27 -07:00
Lucas Cordeiro 4cceb9f165 Add role prop on draft editor interface (#35198) 2019-05-09 10:48:31 -07:00
Julian Hundeloh 913997868b fix(hapi__nes): add callback parameters to onDisconnect (#35182)
* fix: add callback parameters to onDisconnect

* fix: add test

* fix: change onDisconnect and restore onUpdate
2019-05-09 10:48:00 -07:00