Commit Graph
66275 Commits
Author SHA1 Message Date
William Bergeron-DrouinandPranav Senthilnathan 74b4b2f21b Updated simple-peer to v9.6 (#40261)
* Added missing types for stream & track methods

* Upgraded simple-peer package version & required typescript version

* Added stream calls to tests
2019-11-14 13:14:29 -08:00
Tomasz PluskiewiczandPranav Senthilnathan 32b0df8a68 feat: types for set-link which augments express (#40374) 2019-11-14 12:48:53 -08:00
Jared KassandEloy Durán a17cab9a29 fix: type QueryRenderer environment prop as IEnvironment (#40387)
* fix: type QueryRenderer environment prop as IEnvironment

* add test supplying ReactRelayContext.environment as value for QueryRenderer.props.environment
2019-11-14 20:51:09 +01:00
Jip SterkandPranav Senthilnathan 477dcb3404 allow ioredis client (#40375)
* allow ioredis client

* update Definitions
2019-11-14 11:41:39 -08:00
ChernyandPranav Senthilnathan 21f0c51251 [mapbox__mapbox-sdk] fix: correct typo (#40377) 2019-11-14 11:24:04 -08:00
Chris WilkinsonandPranav Senthilnathan d82d21638a Make Router.url() params optional (#40360) 2019-11-14 11:23:34 -08:00
Dinys MonvoisinandPranav Senthilnathan 9a4931847e [@types/slate-react] Modify editor type on EventHook Type to Slate-React (#40266) 2019-11-14 11:13:36 -08:00
Adam DuroandPranav Senthilnathan ce75133634 scope property missing from PasswordGrantOptions (#40345) 2019-11-14 11:12:10 -08:00
Romain CONNESSONandPranav Senthilnathan 949922e095 Add types for syslog-client (#40354) 2019-11-13 17:20:13 -08:00
Brandon RisellandPranav Senthilnathan b907c0ca82 chromecast-caf-receiver: Update messages and interceptor (#40369)
* Update messages and interceptor

* Update message interceptor parameter name
2019-11-13 15:29:13 -08:00
Andrew PouliotandPranav Senthilnathan e17b6365fc Update API from figma.d.ts v1 update 5 (#40301)
* Update from figma.d.ts. Changes: ran prettier based on settings in this repo, added void return type as necessary.

* Use any directly for ClientStorage
2019-11-13 15:27:35 -08:00
Claus StilborgandPranav Senthilnathan 581dcc3691 Types stripe invoice and tax fixes (#40183)
* Fix issues with invoice and taxRate

* Implement changes requested by pushplay

* Use IOptionsMetadata and add line breaks

* Remove whitespaces with prettier

* Add missing tax_amounts to invoice lines

* Add tax rates to invoice line
2019-11-13 15:24:51 -08:00
Stéphane RoucherayandPranav Senthilnathan dcf5302ba0 Feat/video js alternative distribution (#40319)
* video.js: normalize indentation by using 4 spaces as suggested in README

* video.js: add no vtt alternative distribution

* video.js: fix typo
2019-11-13 15:18:54 -08:00
Mathias Lykkegaard LorenzenandPranav Senthilnathan e426baca01 typing corrections for Titanium and Alloy (#40320)
* fix for alloy typings.

* fix for typings.

* fix for linting issues.

* removed redundant keyword.

* fix for typo.
2019-11-13 15:17:11 -08:00
MartinandPranav Senthilnathan dca36de633 @types/chart.js: Fix barThickness deprecation warning (#40333)
* @types/chart.js: Fix barThickness deprecation warning

* @types/chart.js: Fix maxBarThickness deprecation warning

* @types/chart.js: Fix additional deprecation warnings
2019-11-13 15:11:02 -08:00
Brent EricksonandPranav Senthilnathan 16475983d9 Improve lodash omit typings (#40255)
* Improve lodash omit typings

When omitting multiple properties, properly type-narrow the response

* More specific types first

* only apply to new typescript

* Revert "More specific types first"

This reverts commit e3d681009f9e96d3fb8f881a20b241e595d8fb29.

* Revert "Improve lodash omit typings"

This reverts commit b95d8fce5116449068372f53b143baafb49ec8cf.
2019-11-13 15:08:58 -08:00
Kalley PowellandPranav Senthilnathan 7b590a2f12 [react-router] useRouteMatch always returns match<Params> when no path (#40341)
* Prettier formatting

* [react-router] useRouteMatch always returns match<Params> when no path
2019-11-13 15:04:12 -08:00
Simon TretterandPranav Senthilnathan e45aed2f51 [mongoose] fixes lean return type (#40335)
* [mongoose] fixes lean return type

commit https://github.com/DefinitelyTyped/DefinitelyTyped/commit/c74f860f8b80bb5542fbdafa0a81e260f2fec147#diff-ec6e6a45ee09ed93f5d81cb304c5a0b3 introduced typings for lean (instead of any). 
I like this approach, but it breaks old code, because type script assume T is undefined in this case. Also it didn't respect find or findOne and always used T directly.

This approach fixes therefore two issues:
- by default (if no type is provided), it is any again (backswards compatiblity)
- Depending on the used functino it either returns the given type or an array of the given type.

* fix(lean): it can also return null
2019-11-13 15:01:10 -08:00
Félix RoblesandPranav Senthilnathan 412f9a452a [@types/stripe] Added missing webhook endpoints (#40337)
* add webhook endpoints resource to stripe

* add stripe webhook endpoints comments, tests

* remove myself from defs

* address pr comments
2019-11-13 14:56:02 -08:00
Connor PeetandPranav Senthilnathan 70267282de micromatch: take parameters as readonly arrays (#40363) 2019-11-13 14:54:57 -08:00
J.CandPranav Senthilnathan b22915ad86 Update wegame-api to match the newest official lib: 2.9.3 (#40348)
* 1,added parameter for the callback member of `fail` for Unzip API
2,the argument of access is wrong, no it's fixed to `filePath -> path` (`accessSync` does not have return value in official site, don't know why...)
3,added `digest` for the argument in the callback of `fileInfo` API
4,added more doc info for download API to describe `filePath` and `res.tempFilePath`
5,added more doc info for `removeSavedFile` (remove file should use `unlink` in newer version)

* modify version number

* 1, fixed bug: the members of the argument object of the callback function for touch event (e.g.: onTouchMove onTouchDown etc) are incorrect.
2, add onTap etc members for API wx.createXXXButton
3, improve: change the array members of the callback function as ready only for some APIs

* fixed format error for dtslint

* add rule

* update index.d.ts

disable dt-header rule (but still according the header rule format), because the official version has the minor version number

* add `non-npm package` for header for the new rule

* restore to the default state

* misunderstand about the version

originally I thought the version should be matched with the lib version, so changed it frequently, but that's just a misunderstanding, let's start to maintain this defintion from 2.6 as the first version number :)

* 1, change the parameter as optional for `success` callback of `DownfileParams` interface.
2, fixed bug: the parameter `callback` had a wrong type before for onProgressUpdate interface.

* fix bug for DownloadTask

1, change the parameter as optional for `success` callback of `DownfileParams` interface.
2, fixed bug: the parameter `callback` had a wrong type before for onProgressUpdate interface.

* update to match the official lib 2.9.3
2019-11-13 14:53:48 -08:00
Alexander TandPranav Senthilnathan e069fa6c35 react-navigation: Provides its own types (#39521)
* react-navigation: Provides its own types

* use @types/react-navigation in react-router-navigation
2019-11-13 14:52:30 -08:00
Charles CreteandPranav Senthilnathan 0d97331228 ramda: Upgrade ts-toolbelt (#40308) 2019-11-13 14:51:26 -08:00
Dean van NiekerkandPranav Senthilnathan ee6d9b1621 Added additional typing for the action (#40311) 2019-11-13 14:50:29 -08:00
Alain DumesnyandPranav Senthilnathan 87d5672ede Updated definition to match gridstack v0.5 (#40208)
* Updated definition to match gridstack v0.5.0

* added more code samples in doc
* added missing methods based on all methods in the code
* fixed unesseray white space, and lint issues if set to strict

this will become the base if/when I switch gridstack code base to TS

* Updated definition to match gridstack v0.5.0

* added more code samples in doc
* added missing methods based on all methods in the code
* fixed extra white space, and stricter lint issues (like in my projects)

this will become the base if/when I switch gridstack code base to TS now that I'm co-owner

* identation fix

* added GridStackWidgetType and changed all el: to that type

* fixed more indentation issues

* renamed to GridStackElement, added @example

* fixed cellHeight(val: number | string

* more @example

* renamed to GridstackOptions without I

* IGridstackOptions -> GridstackOptions rename as that was the only interface with cap I.
* angular and typescript style guide recomends not using I in front (just like classes) unlike C#
2019-11-13 14:48:51 -08:00
Mark TranandPranav Senthilnathan 50adc95acf add disableTouch (#40224) 2019-11-12 16:56:03 -08:00
axelfranandPranav Senthilnathan 842e91e454 [@types/stripe] Added "transfer_group" as property on stripe.ITransfer (#40278)
* Add transfer_group to type definitions for Stripe update charge. Documentation: https://stripe.com/docs/api/charges/update

* Added "transfer_group" as property on stripe.ITransfer

* 'transfer_group' on ITransfer can be 'null'
2019-11-12 16:54:38 -08:00
Nathan Shively-SandersandGitHub cf2baac7cb reference @types/node in vfile-location (#40344)
vfile references @types/node but types-publisher doesn't know that.
Instead, reference @types/node in vfile-location, since it now depends
on vfile instead of @types/vfile.
2019-11-12 16:14:39 -08:00
Łukasz FiszerandPranav Senthilnathan 1789f1a2ae Add types for react-query (#40312)
* Add types for react-query

* Add clearQueryCache export, fix typo in QueryOptions
2019-11-12 15:50:27 -08:00
Florian KellerandPranav Senthilnathan 7304e38516 [sodium-native] Add types for sodium-native (#40334) 2019-11-12 15:05:24 -08:00
Alexander TandPranav Senthilnathan d110bf5f42 aphrodite: Provides its own types (#39660) 2019-11-12 14:55:27 -08:00
Florian KellerandPranav Senthilnathan 82c83bac85 [cosmiconfig] Remove package (#40148) 2019-11-12 14:53:25 -08:00
Alexander TandPranav Senthilnathan e84391aa5f velocity-animate: Provides its own types (#39563) 2019-11-12 14:49:24 -08:00
Alexander TandPranav Senthilnathan f638dcc035 commons-validator-js: Provides its own types (#39638) 2019-11-12 14:37:07 -08:00
Rachel MacfarlaneandPranav Senthilnathan cf3e331667 Add types for windows-process-tree (#40259) 2019-11-12 14:23:48 -08:00
Alexander TandPranav Senthilnathan 8169c6dbfe moment-range: Provides its own types (#39468)
* moment-range: Provides its own types

* add moment-range as dependency to react-daterange-picker

* fix moment-range types in react-daterange-picker
2019-11-12 14:16:54 -08:00
Alexander TandPranav Senthilnathan 14b1e480a6 mali-compose: Provides its own types (#39458) 2019-11-12 13:50:03 -08:00
Florian KellerandPranav Senthilnathan 2dbf2e48ba [calendar] Add types for calendar (#40322) 2019-11-12 13:41:42 -08:00
bparanandPranav Senthilnathan 4148f3afa9 [chai] OwnProperty and HaveOwnProperty assertions support value parameter (#40189) 2019-11-12 13:05:04 -08:00
simusr2andPranav Senthilnathan 3d9199856b Allowing group of columns (#40325)
* Allowing group of columns

A column can be a "group" of columns (Example: group header column -> Measurements, grouped column -> Length, Width, Height)

* Update tabulator-tables-tests.ts

Added trailing whitespaces

* Update tabulator-tables-tests.ts

Fixing whitespaces

* Update tabulator-tables-tests.ts

Removed trailing whitespace
2019-11-12 12:56:43 -08:00
Martin LehmannandPranav Senthilnathan 64f9d8cef4 [@google-cloud/kms] Add missing types for creating KeyRings and CryptoKeys (#40124)
* Add createKeyRing declarations

* Add createCryptoKey declarations that don't quite work with all options

* apparently it worked with rotationPeriod

* add nanos field to make it happy

* function order

* run lint

* update package version from 1.3 to 1.5.1 in header

* remove patch version
2019-11-12 12:56:03 -08:00
Láďa DurchánekandPranav Senthilnathan 1402489d76 Stripe: update plan & new plan options (#40332)
* Update type for IProductCreationOptions

* Use minor version instead of patch

* Stripe: Update plan and plan creation options

- https://stripe.com/docs/api/plans/object
- https://stripe.com/docs/api/plans/create

* Version bump
2019-11-12 12:54:11 -08:00
woutervh-andPranav Senthilnathan 649242ac0f Fixed mistake in style spec: raster-resample -> raster-resampling (#40326) 2019-11-12 12:46:09 -08:00
Resi RespatiandPranav Senthilnathan d25f356467 [next] Deprecate next and next-server (#40235)
* [next] Deprecate `next` and `next-server`

Next.js already includes its own TypeScript declaration as of version
9.0.0, so this guide is no longer necessary.

* fix types for packages that require next

* minor tests fix
2019-11-12 12:44:55 -08:00
Alexander TandPranav Senthilnathan 0acbec3d02 jest-diff: Provides its own types (#39589) 2019-11-12 12:42:32 -08:00
Henry MercerandPranav Senthilnathan 27cff735cb [unzipper] Fix CentralDirectory.extract type (#40240) 2019-11-12 11:35:17 -08:00
Stéphane VeyretandPranav Senthilnathan acda7e1cdb depcheck: Removing (#40269)
Types are now directly maintained by upstream project.
2019-11-12 11:33:53 -08:00
Grant TimmermanandPranav Senthilnathan cc7e016c29 Grant remove grant from gas (#40330)
* remove grant from definition owners

* fix def by comment
2019-11-12 11:05:44 -08:00
thmiyathmaryandPranav Senthilnathan 14083509a1 [ioredis] Add methods for Cluster (#40239) 2019-11-11 17:57:48 -08:00
cdoeandPranav Senthilnathan 4827713afc [intercom-client] Include property for removing company from user (#40260) 2019-11-11 17:48:53 -08:00