Commit Graph

67002 Commits

Author SHA1 Message Date
Robert Kesteson
3233bf674d [jira-client]: Updated export to match version 6.13 (#40202) 2019-11-15 12:00:29 -08:00
Oliver Joseph Ash
a3ef14ec54 Node: URL: correct format/parse parameter types (#40118)
* Node: URL: correct format/parse parameter types

* Fix dependencies

* Fix dependencies

* Revert href change

* Update types/node/url.d.ts

Co-Authored-By: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
2019-11-15 11:38:53 -08:00
Chris Wilkinson
862d091f93 Add format-link-header (#40411) 2019-11-15 11:36:41 -08:00
Yuji Tabata
64e1898009 Add expandable field to ListItem (#40368) 2019-11-15 11:25:18 -08:00
Surya Law
0cf9e5e912 Stripe: add off_session on IPaymentIntentCreationOptions (#40372) 2019-11-15 11:24:45 -08:00
Alexander T
86ba659356 react-native-tab-view: Provides its own types (#39522)
* react-native-tab-view: Provides its own types

* usee @types/react-native-tab-view in react-router-navigation-core

* set @types/react-navigation@3.0.8
2019-11-15 11:17:47 -08:00
mcpar-land
d266a49bb1 Revised typings for accuracy (#40393) 2019-11-15 11:16:48 -08:00
Brandon Risell
f61dd79a12 RequestData should just have message types (#40396) 2019-11-15 11:14:37 -08:00
Federico Bond
ab01840dfc [trezor-connect] update types (#40389) 2019-11-15 11:13:10 -08:00
Oliver Joseph Ash
e4b9d77045 Lodash: add support for user-defined type guards to overSome and overEvery (#40247)
* Lodash: add support for user-defined type guards to `overSome` and `overEvery`

* Improve example
2019-11-15 11:12:23 -08:00
Alex Jerabek
92b0415393 Adding build fix information (#40392) 2019-11-15 11:11:30 -08:00
Aitor Pérez Rodal
5aa4accc98 [Luxon] Add Interval#toISODate, Interval#toISOTime and Duration#mapUnits (#40394)
* [Luxon] Add Interval#toISODate and Interval#toISOTime

* [Luxon] Add Duration#mapUnits

* Patch version not allowed
2019-11-15 11:10:22 -08:00
Kristofer Selbekk
8f3259b103 Update types for react-collapse@5 (#40362) 2019-11-15 11:09:29 -08:00
Alexander T
4ad5f6f918 jest-cli: Provides its own types (#39590) 2019-11-15 11:08:17 -08:00
Alexander Pepper
4728a425d9 [aws-lambda] Improved Lambda@Edge types (#40355)
* [aws-lambda] Extended CloudFrontRequestEvent with body

Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html
This key is optional. See https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html for details

* [aws-lambda] Reordered keys in CloudFrontRequestEvent and CloudFrontResponseEvent.

This is done so they match the order of https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html

* [aws-lambda] CloudFrontEvent keys are all readonly.

Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-request

* [aws-lambda] CloudFrontRequest keys are now readonly.

Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-request

* [aws-lambda] Added jsdoc comment for CloudFrontRequestEvent and CloudFrontResponseEvent.

* [aws-lambda] requestId is only available for viewer events

Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html

* [aws-lambda] request data of CloudFrontResponseEvent is readonly.

> If the Lambda function modifies the request object, the changes are ignored.

Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-response

* [aws-lambda] Added jsdoc comment for CloudFrontResultResponse

Also corrected link

* [aws-lambda] Added apepper as co-author

* [aws-lambda] TypeScript version is now 3.5 in order to user "Omit<>"

See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type

Also bumped TypeScript version in packages, that do depend on "aws-lambda".

* [aws-lambda] Use "older" Pick/Exclude instead of "newer" Omit

Omit<> is introduced in 3.5 and is "too new". Exclude<> instead is introduced in 2.8, which is "old enough".

* [aws-lambda] Downgraded TypeScript version to 2.8, so Exclude can be used.

Omit<> which is introduced in 3.5 is "too new". Using Exclude<> instead, that got introduced in 2.8 (see [1])

[1] https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#predefined-conditional-types
2019-11-15 11:07:23 -08:00
Kyle Hensel
eab2d9b7da Reference dom lib (#40315) 2019-11-15 11:05:04 -08:00
Rubens Pinheiro
c13521e2fe [webpack] Adding client config options to the ConfigurationFactory (#40298)
* [webpack] Adding client config options

* Fix on interface
2019-11-15 11:01:16 -08:00
Anders Hejlsberg
71381a8470 Prepare for TS #34927 (#40365)
* Update mergerino/mergerino-tests.ts

* Update styled-system__css/styled-system__css-tests.ts

* Update xml/index.d.ts
2019-11-15 10:59:28 -08:00
Nathan Shively-Sanders
12c3ce0d4f Fix relative paths in tests, part 1 (#40420)
* Fix relative paths in tests, attempt 1

* revert athenajs change
2019-11-15 09:19:40 -08:00
Nathan Shively-Sanders
9314b64275 Streamline references to old Typescript versions. (#40418)
Also mention triple-slash `types` references.
2019-11-15 08:46:48 -08:00
Ethan Veres
9f57df89f3 [relay-runtime] Correct typing for default missing field handlers (#40361)
* Correct typing for default missing field handlers

* default export
2019-11-15 08:21:30 +01:00
Gregor Martynus
d36a3b44e4 [fetch-mock v7.4.0] Add options.body for request body matching (#40133)
* add tests for request body matching

feature added in https://github.com/wheresrhys/fetch-mock/pull/448

* add `options.body` for request body matching

See https://github.com/wheresrhys/fetch-mock/pull/448/files

* add test to match request body to array
2019-11-14 16:11:16 -08:00
Pat Lillis
c8287ed1e7 [@types/nuclear-js] Make sure interfaces are exported (#40386)
* Make sure interfaces are exported

* Fix some lint warnings
2019-11-14 16:08:26 -08:00
Łukasz Fiszer
415e680187 react-query: improve types for useQuery in paginated mode (#40399)
* react-query: improve types for useQuery in paginated mode

* react-query: remove patch version from header
2019-11-14 15:50:17 -08:00
Frederic
a2149e0650 Create types for sade (#40398) 2019-11-14 15:45:45 -08:00
Michael Shafir
6061d28041 Add typings for the promise-hash library, v1.3 (#40331)
* Added typings for this promise-hash library

* pull out common type for the promise hash argument

* make recommended simplifications, expand test
2019-11-14 15:31:23 -08:00
Alexander T
b692892009 ladda: Provides its own types (#39668) 2019-11-14 13:49:19 -08:00
William Bergeron-Drouin
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 Pluskiewicz
32b0df8a68 feat: types for set-link which augments express (#40374) 2019-11-14 12:48:53 -08:00
Jared Kass
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 Sterk
477dcb3404 allow ioredis client (#40375)
* allow ioredis client

* update Definitions
2019-11-14 11:41:39 -08:00
Cherny
21f0c51251 [mapbox__mapbox-sdk] fix: correct typo (#40377) 2019-11-14 11:24:04 -08:00
Chris Wilkinson
d82d21638a Make Router.url() params optional (#40360) 2019-11-14 11:23:34 -08:00
Dinys Monvoisin
9a4931847e [@types/slate-react] Modify editor type on EventHook Type to Slate-React (#40266) 2019-11-14 11:13:36 -08:00
Adam Duro
ce75133634 scope property missing from PasswordGrantOptions (#40345) 2019-11-14 11:12:10 -08:00
Romain CONNESSON
949922e095 Add types for syslog-client (#40354) 2019-11-13 17:20:13 -08:00
Brandon Risell
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 Pouliot
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 Stilborg
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 Roucheray
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 Lorenzen
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
Martin
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 Erickson
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 Powell
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 Tretter
e45aed2f51 [mongoose] fixes lean return type (#40335)
* [mongoose] fixes lean return type

commit c74f860f8b (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 Robles
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 Peet
70267282de micromatch: take parameters as readonly arrays (#40363) 2019-11-13 14:54:57 -08:00
J.C
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 T
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 Crete
0d97331228 ramda: Upgrade ts-toolbelt (#40308) 2019-11-13 14:51:26 -08:00