Commit Graph
62321 Commits
Author SHA1 Message Date
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
Lukas 1a938a7445 [react-motion] Fix missing generic-param error on children (#35107) 2019-05-09 10:33:43 -07:00
Nathan Shively-Sanders e4f9fd1856 Make lodash faster (#35241)
* MINIFY

* MINIFY 2

* MINIFY 3

* MINIFY 4

* switch to unknown (-3500 types)

* Switch to built-in Omit

* Simplify differenceBy/differenceWith

I only changed the Imp/Exp overloads, because those are the ones that
create significant numbers of types.

The normal case is still fully typed, but when passing multiple
comparison arrays, they are all typed as `List<unknown>`, and the
iteratee is not checked for compatibility with their types.

You should never use multiple comparison arrays.

Brings type count down 18k, from 452k to 434k.

* Simplify fill

Again, only touches Imp/Exp.

The only semantic difference is that, for the uncommon case that you
fill an array of type T with elements of type U, the special-case for
filling the whole array is gone. You get Array<T | U> now, not Array<U>.

You should never change the type of an array with _.fill.

* Simplify union/intersection[By/With]

In the same way as difference.

Saves 15k, from 426k to 411k.

* Simplify pullAll/xor[By/With]

411k -> 408k

* Simplify zip[By/With]

408 -> 381k types

* each[Right] is a synonym for forEach[Right]

Doesn't make a significant difference in the number of types though.

* MINIFY 5

* Simplify List | NumericDictionary unions by removing List

They are almost the same type.
381k -> 380k

* Clean up function overloads

381k -> 328k

Still not enough for dtslint to succeed in 1.4 GB of memory. :(

* clean up lang.d.ts

* I don't even know what's happening.

Large swatchs of functions are disabled. The conversion of methods to
list-only seems to help, but I'm not sure this will hold for other
methods that apply to other types.

* fix type parameter name

* Reform array

Things are moving in the right direction!
2,351k types

* Better type parameters on Imp/Exp subtypes

2,329k types

* Actually correct base type parameters for ImpL/ExpL

* every/filter/find/findLast

2,037k types

* flatMap[Deep/Depth]

1,865k types

* forEach[Right], groupBy

1,822k types

* includes, keyBy, map

1,653k types

* fix wrapper constructors; add partition,orderBy

back up to 1,733k types :(

* Finish collection.d.ts

1,424k types

I'm not sure this thing is going to converge at a lower value than the
old code.

* Update ImpF interface and some of function.d.ts

 1382k types

* clone, castArray to base, ImpU<T> is now generic

1,412k types, which moves backward a bit actually.

* Rest of lang.d.ts

1,378k types

* Finish math.d.ts

1337k types

* Restore commented-out functions

Still kind of broken though. More updates tomorrow.

* Fix definition of Imp/ExpO

* any out really big overload sets

down to 385k types

* Lots more fixed

272k types

* omit, pick[By], others

181k types

* Reenable some things, fix transforms types, fix values[In]

157k types

* Fix rest of errors

Doesn't fix $Expect assertions yet!

165k types

* Remove more this-types

94k types

* Remove rest of this types

Well, almost all. There are still a few ones that didn't save much or
any perf.

75k types

* Better backward compatibility

* Fix lots of lint

Lots of lint to go!

* Fix more lints

Still about 2500 to go!

* Fix ExpectType, part 1

13% done

* More fixes from ExpectType

33% done

* More fixes

41% done or so?

* Done up to curry

49%

* More expect rule fixes

71% done

* Done through mapValues

80% done

* Partly done pickyBy

82% done, almost

* Restore partial/partialRight

and get rid of rest of `this` parameters

* More fixes

87% done

* More test fixes

97% done

* Last round of test fixes

...Maybe. There are some weird failures on my laptop that don't match
what my language service is telling me.

* Final round of test fixes

Fixes Partial<T> from yesterday plus a couple that cropped up afterward.

* Get rid of bare Imp/Exp returns

Add ImpChain/ExpChain, but it's expensive so shouldn't be used much.

* Make object methods specific to object.

Saves about 8000 types.

* Start converting remain Exp uses

So far a few of them need to be ExpChain.

* Remove rest of Exp<T> returns

Not all are gone, but most are. A few explode performance, and a few
don't have a sensible replacement.

* Move changes into ts3.1 and revert to old top-level

* Rename to old names

* Fix test resolution

With absolute paths, module resolution picks up types/lodash/fp.d.ts
instead of types/lodash/ts3.1/fp.d.ts.

* Update fp.d.ts

* Add tslint and rename expectrule assertions

* Remove lowdb codegen

Use a worse type for `write` instead. It is not worth the complexity for a
rarely-used package, and the return type is rarely used, except to await
it.

* Remove list methods that should not be on ExpU

* Change names to match Lodash module names

* Update names in lowdb too

* Restore trivial jsdocs

Which is the majority of them.

I still need to restore

1. All the specific jsdocs on LodashStatic functions.
2. All the jsdocs in common.d.ts
3. All the jsdocs on various non-function properties in various files.

* Restore jsdoc to common.d.ts

* Restore head jsdocs

* Improve `any` handling and pop's type

The latter is a bit expensive but probably worth it?

* Update tests

* Add StringNullableChain and more ExpChain returns

* Update lowdb tests

They need a cast now that nullability is tracked correctly!

* First round of review changes

* Remove generate-lowdb, fix Object.iteratee type

* Update test assertion

* Update test again

Not sure why this didn't fail on the previous run
2019-05-09 08:59:05 -07:00
Tyler Johnson ef62e5ba7a add rebind-host definitions (#35266) 2019-05-08 17:31:58 -07:00
Li Cui 4bdcc2d058 RUN-5260 release 41 version for openfin (#35269)
* create v39 folder

* Update to v41

* delete unused file

* delete unused file

* delete unused file

* delete unused file

* delete unused file

* add path mapping for v39
2019-05-08 17:30:38 -07:00
Alex Jerabek 20b213b9c9 Removing links (#35263) 2019-05-08 17:28:56 -07:00
Alex Jerabek 762cfd545d Excel for iOS doesn't supported CompressedFile (#35268) 2019-05-08 17:28:39 -07:00
Yama-Tomo 5c7eb2de9c [@types/hard-source-webpack-plugin] Add definition of plugins (#35134)
* chore: add author

* feat: add type definition of plugins

* test: add test
2019-05-08 17:03:11 -07:00
Jamie Davies 1ebe063797 Added name and address to stripe customer objects (#35066) 2019-05-08 11:44:34 -07:00
Walter Barbagallo 14c84d853f [react-cropper] Made ref property optional (#35259)
* [react-cropper] Made ref property optional

* Add missing semicolon
2019-05-08 11:16:30 -07:00
CymruKakashi 82d9295a46 TinyMCE - Spell Checker Pro plugin settings, adding missing functions (#35157)
* Adding in Spell Checker Pro Plugin settings

* Adding in tests for Spell Checker Pro settings

* Missing whitespace & line length test failure fixes

* Adding own name to contributors

* Adding a number of missing tinymce functions

* Resolving lint issues with added functions
2019-05-08 11:15:52 -07:00
BradleyHill 453ed8b594 Fabric - misc private methods/props (#35240)
* Fabric - misc private methods/props

* Fabric - misc private methods/props - i guess strongly typed objects use strongly typed Array rather than []
2019-05-08 11:14:10 -07:00
Arsalan Ahmad 86f8676e7d Async: adds errorFilter to async retry (#35231) 2019-05-08 11:12:51 -07:00
tagyoureit cb425140db Add a missing call and missing options to nock index.d.ts (#35166)
* Bumped ver to 10.0.1

nock.activeMocks() is missing => added function activeMocks(): string[]; to the nock namespace.
nock( 'https://api.github.com' , {"encodedQueryParams":true}) => added encodedQueryParams: boolean to the Options interface.

* Updated per previous comments

However, I don't know what this error is that is causing Travis CI to fail???
```
Error: ../node/v7/index.d.ts: Definitions must use global references to other packages, not parent ("../xxx") references.(Based on reference 'base.d.ts')
```

* Update tests for activeNocks

* Dedent/remove 'function' from activeMocks in Scope interface

* linter changes
2019-05-08 11:12:10 -07:00
Doron Nachshon 900439b8b7 Make ReducerMapMeta type work on nested reducerMap (#35137)
{
[actionName]: () => ({it: 'works'})
  [actionName]: {
	  NESTED: () => ({it: 'Currently does not work on nested reducerMaps, this change allows it'})
  }
}
2019-05-08 11:09:24 -07:00
Yuma Hashimoto 55414c9533 [@types/gulp-sass] fix Options to support 'importer' (#35145)
* add 'importer' on interface SassOptions

* Lower typescript version requirement to 2.7 for node-sass.

ref. https://github.com/DefinitelyTyped/DefinitelyTyped/commit/c80c69a4221c25ac0feace6472a44f466bb95316

* rename: Options -> GulpSassOptions

* update SassOptions by extending node-sass Options

* add latest version
2019-05-08 11:07:19 -07:00
Li Zhe 14130ee3fa fix path.divideAt return definition as @types/paper (#35153)
* fix divideAt return definition

* fix
2019-05-08 07:48:42 -07:00
Nathan Shively-Sanders e2e5298c1f Avoid extends check for React.memo and React.lazy (#35272)
This is extremely expensive. Doesn't address the underlying issue that
ComponentProps and PropsWithRef are extremely expensive.
2019-05-07 20:12:47 -07:00
Boris Moore f2cb8276df Update types/jsrender definitions (#35148)
* Update types/jsrender definitions

* Remove unnecessary 'jquery' reference from jsrender/jsrender-tests.ts
2019-05-07 19:52:55 -07:00
Trent Jones 65c223ac80 Added partial definition for React-Big-Scheduler (#35095)
* Added partial definition for React-Big-Scheduler

* Removed invalid package.json file

* Updated TS version to match React dependency

* Fixed errors from test
2019-05-07 16:43:01 -07:00
PopGoesTheWza 82a98ba6a6 google-apps-script - May 3, 2019 update (#35244)
* FieldType enum:
HYPERLINK
IMAGE
IMAGE_LINK

* Documentation text update

* May 3, 2019
2019-05-07 16:38:44 -07:00