Commit Graph

67002 Commits

Author SHA1 Message Date
Gaëtan Maisse
e6be2d46e4 [storybook__addon-info] Update types to match 5.2 (#40270)
* [storybook__addon-info]

 - Use types directly from `Storybook` repo as it is now written in TS
 - Update types to match version 5.2 of the addon and of Storybook (as they have to have the same version)

* [storybook__addon-info] make tests more realistic

Define React simple component and use them to have function call that match the ones done when really using the lib
2019-11-18 13:36:05 -08:00
Pascal Corpet
eab1a0860a [react-share] Allow callback assigned to beforeOnClick not to return anything. (#40406) 2019-11-18 13:35:29 -08:00
Michael Adams
8ce433ef01 [plotly.js] - add types for waterfall chart (#40466) 2019-11-18 12:54:39 -08:00
Jon Surrell
6eeacad386 @wordpress/block-editor: Add some settings to BlockEditorProvider (#40462)
* Include EditorBlockSettings in provider settings

* Add tests
2019-11-18 12:54:25 -08:00
Divyun Raje Vaid
cd211d24c5 feat(pubnub): adds listener for message actions (#40437)
also adds the reconnect method
2019-11-18 12:46:30 -08:00
Gerhard Stöbich
8fa67cd896 [node] ensure compatiblity between http.request and url.parse (#40430)
* [node] ensure compatiblity between http.request and url.parse

Ensure that output of url.parse() fits into http.request() as
indicated at https://nodejs.org/dist/latest-v12.x/docs/api/http.html#http_http_request_url_options_callback

* fix typo

Co-Authored-By: Trivikram Kamat <16024985+trivikr@users.noreply.github.com>
2019-11-18 12:45:00 -08:00
dckorben
56faec0579 [@types/google.visualization] Generalized ChartTrendlineOptions, Various Enums [WIP] (#40306)
* All charts should accept DataTable | DataView

* DataView constructor should take DT | DV union

* Add missing fill color

* fix type and parameter name blending

* Add missing test? func to DataTableCellFilter

This property combines with min/max and/or value filtering if present.

https://developers.google.com/chart/interactive/docs/reference#DataTable_getFilteredRows

* fix id?: type

* Fix wrong return type

* Replace comment with enum

* selectionMode enum

* Add ChartSeriesOptions for Line,Scatter

Used for several XY based Charts. Others need specific series options.

* Revert Scatter LineChartSeriesOptions

* Add base for SeriesOptions

* backgroundColor strongly typed

* Change backgroundColor to ChartFill

* Re-Unify ChartStroke and ChartFill

Appears this is the correct behavior that should be suggested in IDE.

* ChartStrokeFill

* ScatterChart changes

Bringing ScatterChart up to LineChart detail

* histo orientation enum

* ChartOrientation to Common

* Reorder functions

* Formatting

* Formatting 2

* curveType enum
2019-11-18 12:44:41 -08:00
Ayoub Oudmane
8c98ca31a7 Update index.d.ts (#40336) 2019-11-18 12:41:34 -08:00
Yu-Chieh Chen
23c25e5846 fix(slate): add hasQuery and hasCommand (#40290)
* fix(slate): add hasQuery and hasCommand

* fix(slate-react): add hasQuery and hasCommand
2019-11-18 12:41:15 -08:00
Proudust
5bfe4a8d28 Add Protection#removeEditors(User[]) (#31273) (#40317) 2019-11-18 12:40:22 -08:00
mtgto
2d9ec7248f google-apps-script: Fix XmlService Element interface (#32614) (#40003) 2019-11-18 12:39:30 -08:00
Ryan Rouleau
79526eb1d4 Allow number input in getDuration() in apicache (#40431)
* Allow number input in getDuration()

The library allows a string like `1 minute` or a simple number representing ms.  This change allows the use of a number of ms in addition to a string.

See:
https://github.com/kwhitley/apicache/blob/master/src/apicache.js#L371

* Update index.d.ts
2019-11-18 12:39:02 -08:00
Munif Tanjim
3d60af8fb2 [validator]: update for validator@12.0.0 (#40192)
* [validator]: update for validator@12.0.0

* update tsconfig.json

* fix dependents: sequelize

* tweak dependents: sequelize
2019-11-18 12:38:42 -08:00
Forzoom
1011b21241 feat: add wx.openAddress / window.__wxjs_is_wkwebview (#40436)
* feat: add wx.openAddress / window.__wxjs_is_wkwebview

* add Definitions by
2019-11-18 12:31:54 -08:00
Eric Swann
419a2fb944 Node-Geocoder: Added StateCode to Entry interface (#40400)
* Added StateCode to Entry interface

* reverted no-emit flag in tsconfig
2019-11-18 12:31:08 -08:00
Owen Hall
81821c1ff9 [underscore] Fixes sortBy on chained array wrapper (#40417)
* underscore - Fix an issue where calling sortBy on a chained wrapper around Z[] claimed to return a Z.

e.g. _.chain([1, 2, 3]).sortBy(x => -x).value() would claim to be of type number, not number[].

* underscore - Ensure length property is present on value of calling sortBy on chained, wrapped array.

* underscore - Be more explicit that sortBy returns an array.

That's its implementation behaviour, even if not provided with an array to begin with.

* underscore - Revert unused generic type.
2019-11-18 12:30:04 -08:00
Oliver Joseph Ash
1111ada737 Fix return types (#40448) 2019-11-18 12:27:22 -08:00
Pascal Corpet
202ea04fc1 [jspdf] Fix setting colors using an HTML color string. (#40405) 2019-11-18 12:23:49 -08:00
Andrew Marcuse
2296bc56ab [@types/koa-views] Add missing autoRender flag to opts (#40458) 2019-11-18 12:22:00 -08:00
Niklas
4def36b891 [@types/stripe]: SetupIntentPaymentMethodType allow 'sepa_debit' (#40453)
As shown in https://stripe.com/docs/payments/sepa-debit-setup-intents 'sepa_debit' is a valid SetupIntentPaymentMethodType.
Additionally the example code shown here https://stripe.com/docs/api/setup_intents/create?lang=node does not compile if you use 'sepa_debit' as part of `payment_method_types`.
2019-11-18 12:21:00 -08:00
mumpo
562b19ed49 [googlepay] Add missing fields in TransactionInfo (#40460)
* Add missing fields in googlepay's TransactionInfo

* Test new fields in googlepay's TransactionInfo
2019-11-18 12:20:35 -08:00
BradleyHill
edcdbb5a2b Lots of additional apis/props. (#40459)
* Lots of additional apis/props. Trying to reconcile all the places with have to downcast to 'any'. Some formatting. Lots are private but as wise person once argued...should be no private APIs in library.

* Lots of additional apis/props. Missed some return types.
2019-11-18 12:20:16 -08:00
Jon Surrell
9d017eba47 @wordpress/components: Add Popover.Slot type (#40461)
* Add Popover.Slot to Popover type

* Add self to authors
2019-11-18 12:18:23 -08:00
Sergey Bakulin
edc6059c48 fix: allow to specify return types (#40449) 2019-11-18 12:18:10 -08:00
bjoluc
ede0512c20 [qrcode.react] Support imageSettings and passed-through props (#40447)
* update and enhance qrcode.react types

* update qrcode.react version in header

* remove patch version
2019-11-18 12:17:33 -08:00
Alexander T
134bb19cf8 next-redux-wrapper: Provides its own types (#39478)
* next-redux-wrapper: Provides its own types

* use @types/next-redux-wrapper in next-redux-saga

* fix CI error related to dependencies resolutions
2019-11-18 08:36:25 -08:00
Felix Haus
cdf01cf33d [webpack] Updates definitions for Chunk and Module (#40106)
* [webpack] Updates definitions for Chunk and Module* Updates definitions for webpack.compilation.Chunk* Adds definitions for webpack.compilation.Module

* [webpack] Bumps version number
2019-11-16 19:31:29 +00:00
Bas Bosman
58c168c373 Update karma dependency (#40395)
Karma is using `log4j@^4.0.0`, see https://github.com/karma-runner/karma/blob/master/package.json#L407
2019-11-15 17:15:58 -08:00
PeterJFerrarotto
3b55a2cc8a [@types/cytoscape] Adding missing EdgeLine and Gradient style properties (#40343)
* [@types/cytoscape] Added missing EdgeLine style properties

* [@types/cytoscape] Abiding by linter specifications and readme specifications

* [@types/cytoscape] split gradient properties into separate interface

* Fixing for linter
2019-11-15 17:09:59 -08:00
Aankhen
54066ceaf2 Rewrite Roarr types to approximate extant Flow types. (#40231) 2019-11-15 16:59:29 -08:00
Alan Christopher Thomas
ca5bcb9f1c Add sameSite property to Cookie interface (#40422) 2019-11-15 16:47:04 -08:00
Steve Johns
85eacf4d39 add @xstyled/system typings (#40416)
* add @xstyled/system typings

* pr feedback - bump package version
2019-11-15 16:40:16 -08:00
Jan Peer Stöcklmair
52e8f1fad6 [use-deep-compare-effect] Add package (#40353)
* Feat: add useDeepCompareEffect

* Fix: change requests and wrong export
2019-11-15 16:31:38 -08:00
JerryHong
3a9e538b43 [@types/styled-system__theme-get] Add @styled-system/theme-get type (#40275)
* Add @styled-system/theme-get type

* Remove devDependency

* Add semicolon

* Remove package.json
2019-11-15 16:29:41 -08:00
Ashley Abbott
dbb2bb1731 bunyan-format: Add merged function declaration to support calling default export as a function (#40257)
* Add merged function declaration to support calling as a function

Signed-off-by: Ashley Abbott <ashpabb@gmail.com>

* Add tests for function call

Signed-off-by: Ashley Abbott <ashpabb@gmail.com>

* Add contributor and set Typescript Version to 3.6

Signed-off-by: Ashley Abbott <ashpabb@gmail.com>

* Missing line ending for tests.ts

Signed-off-by: Ashley Abbott <ashpabb@gmail.com>

* Update library version number

Signed-off-by: Ashley Abbott <ashpabb@gmail.com>

* Removing patch version from index.d.ts to satisfy Jenkins constraints

Signed-off-by: Ashley Abbott <ashpabb@gmail.com>
2019-11-15 16:24:24 -08:00
kwzm
d4e9d64729 Add types for react-photoswipe (#40175)
* Add types for react-photoswipe

* Fix bug in react-photoswipe

Modify typescript version annotation

* fix dtslint errors

* add semicolon and ts version

* remove ts version in test file

* remove exported functions
2019-11-15 15:45:51 -08:00
Eric Crosson
1fa034cbd8 Add types for compute-argmax (#40313)
* Add types for compute-argmax

* Update types/compute-argmax/index.d.ts

Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>
2019-11-15 15:39:36 -08:00
Chris Wilkinson
f380829c5c [indefinite] Fix export and add new option (#40238)
* Fix indefinite export and add new option

* Update version

* CS fix

* Fix link

* Change exports
2019-11-15 15:17:56 -08:00
TypeScript Bot
4148bdb45a Update CODEOWNERS (#40421) 2019-11-15 15:08:05 -08:00
Mauricio Aspiazo
d759d9ef04 [@types/react-data-grid] Adding missing types to support Tree Views (#40279)
* Adding missing types to support trees for react-data-grid

* Applying minor changes as suggested by SupernaviX
2019-11-15 14:41:35 -08:00
Divyun Raje Vaid
5eeff62e2c [PubNub] Adds typings for MessageActions and Push. Updates typing for Storage & Playback. (#40379)
* feat(pubnub): adds typings for message actions

* feat(pubnub): updates typings for storage and playback

* feat(pubnub): adds typing for push notifications

https://github.com/DefinitelyTyped/DefinitelyTyped/issues/40206
2019-11-15 14:40:44 -08:00
Kevin Brown
4b607f45c4 Added rudimentary types for @keystonejs/* (#40316)
* Added rudimentary types for KeystoneJS

* Fixed version on auth-passport and added additional auth strategy types.

* Added definition for getInputFragment, removed public access specifier.
2019-11-15 14:18:44 -08:00
Nathan Shively-Sanders
95dce3019d Fix relative paths in tests, part 2 (#40423)
* Fix relative paths in tests, part 2

* revert lodash change
2019-11-15 14:14:18 -08:00
Kwok Chi Leong
dbb7ff8e17 [workbox] Added type definitions for all packages (#40277)
* [workbox-core] Added type definitions

* [workbox-core] Updated ts-doc

* [workbox-core] Added types.d.ts

* [workbox-core] Removed TSDoc

* [workbox-core] Moved some types

* [workbox-core] Bug fixes

* [workbox-expiration] Added type definitions

* [workbox-strategies] Added type definitions

* [workbox-strategies] Change "es6" to "es2015"

* [workbox-precaching] Added type definitions

* [workbox-precaching] Added missing method

* [workbox-core] Moved some files to a sub-folder

* [workbox-core] Moved some files to a sub-folder

* [workbox-precaching] Moved some file to sub-folder

* [workbox-core] Added generic type support

* [workbox-routing] Added type definitions

* [workbox-routing] Changed from "es6" to "es2015"

* [workbox-background-sync] Added type definitions

* [workbox-google-analytics] Added type definitions

* [workbox-cacheable-response] Added type definition

* [workbox-broadcast-update] Added type definitions

* [workbox-range-requests] Added type definitions

* [workbox-streams] Added type definitions

* [workbox-streams] Added "use strict" to tests

* [workbox-navigation-preload] Added type definition

* [workbox-precaching] Added the missing type def...
* Added the missing type definitions

* [workbox-precaching] Commented the upcoming
properties

* [workbox-routing] Added the missing type
definitions

* [workbox-strategies] Changed package references

* [workbox-expiration] Added the missing tests

* [workbox-strategies] Updated tests

* [workbox-background-sync] Fixed wrong file name

* [workbox-google-analytics] Updated tests

* [workbox-cacheable-response] Fixed the incorrectly
named files

* [workbox-broadcast-update] Fixed the incorrectly
named files

* [workbox-broadcast-update] Added the missing
function

* [workbox-broadcast-update] Fixed typo

* [workbox-navigation-preload] Updated tests

* [workbox-range-requests] Fixed the incorrectly named
files

* [workbox-streams] Updated tests

* [workbox-core] Updated tests

* [workbox-window] Updated tests and moved some
files

* [workbox-window] Updated "es6" to "es2015"

* [workbox-sw] Updated definition to make use of the newly added
definitions

* [workbox] Updated "Definitions by" field

* [workbox-sw] Updated rules

* [workbox] Updated version numbers

* [workbox-window] Fixed version number
2019-11-15 14:03:40 -08:00
Jose Luis Leon
c93e733426 Parametrizable request and response body types for ExpressJS routers (#39400) 2019-11-15 13:42:09 -08:00
Zach Posten
cca42c52f3 fix(react-filepond): Flip error and file args in callbacks (#40419)
This functionality seems to now have been corrected in FilePond.
2019-11-15 13:20:19 -08:00
Alexander T
f13238a5d2 base-x: Provides its own types (#39654)
* base-x: Provides its own types

* add @types/base-x to bs58/v3
2019-11-15 12:41:20 -08:00
Alex
082c406d54 [@types/mongoose] Add missing validator, fix err message param (#40203) 2019-11-15 12:37:40 -08:00
Vesa Poikajärvi
de73565ee1 [email-templates] More accurate types, less any (#40342)
* Less any, more hopefully correct types

email-templates and nodemailer both accept arguments in variety of formats.
Usedtypes from nodemailer types and and read both email-templates and
nodemailer documentation in orer to construct a better typedef

* Somewhat typed preview

* Some tests, pass the generics around

* Contributor

* Wrong type for views
2019-11-15 12:16:10 -08:00
Brad Murray
61ee030edd Update lolex types for new Async methods (#40282) 2019-11-15 12:02:58 -08:00