Commit Graph

69889 Commits

Author SHA1 Message Date
Dương Tấn Huỳnh Phong
00e2d75404
🤖 Merge PR #45791 [react-dates]: change reopenPickerOnClearDates to reopenPickerOnClearDate for SingleDatePickerShape by @zgid123 2020-06-30 20:31:23 -07:00
Colin Doig
34b9d03eae
🤖 Merge PR #45766 leaflet Map.invalidateSize() can take "pan" and "debounceMoveend" opt… by @captain-igloo
Co-authored-by: Colin Doig <colin@wialus.co.nz>
2020-06-30 13:48:50 -07:00
Skyler Kehren
8a5887adf7
🤖 Merge PR #45643 [screeps] June 2020 game updates by @pyrodogg
- Adds constants `CPU_UNLOCK`, `PIXEL`, `ACCESS_KEY`
- Adds `Game.cpu.generatePixel()`
- Adds `Game.cpu.unlock()`, `Game.cpu.unlocked`, and `Game.cpu.unlockedTime`
2020-06-30 11:23:42 -07:00
JoelWee
607b7f1b4e
🤖 Merge PR #45796 [sanitize-html] fix IOptions["allowedClasses"] type by @JoelWee
The source code does not support setting boolean to allowedClasses. It only supports this for individual tags in allowedClasses. E.g. { p: false } will allow all classes for the p tag.
2020-06-30 10:10:11 -07:00
Michael Ness
5e72001c2a
🤖 Merge PR #45748 [@types/parse] TestCollection generic argument fix for changes to Underscore by @reubenrybnik 2020-06-30 09:29:16 -07:00
Elizabeth Samuel
130fdc70aa
[office-js] [office-js-preview] (Outlook) Point to delegate access ar… (#45802)
* [office-js] [office-js-preview] (Outlook) Point to delegate access article for guidance

* Tweak
2020-06-30 09:10:45 -07:00
Simon Jackson
adb16117d3
🤖 Merge PR #45779 Add support to MediaRecorder type for audioBitrateMode attribute as defined in updated specification. by @simoncent
* Add support to `MediaRecorder` type for `audioBitrateMode`.

* Update `MediaRecorder` tests.
2020-06-30 01:38:47 -07:00
Asyrique Thevendran
e230e9cecb
🤖 Merge PR #44998 [ioredis] Update types to match version 4.17.1 of the ioredis library by @asyrique
* update types to support username field for Redis 6 auth

* update version of library

* switch order around so more specific is first

* comment out password option to get human attention

* add tslint:disable for unified-signatures
2020-06-29 17:33:20 -07:00
Alex Jerabek
e1eb060400
Removing internal EventType (#45786) 2020-06-29 16:02:44 -07:00
Álvaro Martínez
6e2e40d140
🤖 Merge PR #45724 fix(openseadragon): add missing 2.4.1-2.4.2 types by @alvaromartmart
* fix(openseadragon): ajaxWithCredentials typo

* fix(openseadragon): add missing openseadragon 2.4.1 types

* fix(openseadragon): remove private method

* fix(openseadragon): update 2.4.2 types
2020-06-29 15:25:29 -07:00
Nathan Shively-Sanders
cbbbfecf45
🤖 Merge PR #45780 Fix react-router hooks test by @sandersn
microsoft/TypeScript#39081, which ships in Typescript 4.0, stops using
binding patterns as contextual types for return type inference.
react-router's `useParams` relied on this to fill in an object with
`any`s in case a binding pattern was used but no type argument was
provided. This no longer works.

This fix just adds a type argument to the tests.

For two other, more complete fixes, see

https://github.com/microsoft/TypeScript/pull/39081#issuecomment-644393729

Briefly, the options are (1) go back to returning `any`-filled object
types or (2) tries to default to `string`.

The second fix is probably the right one, but it may hurt
compilation/IDE performance, so I'll leave it to the package owners to
decide whether to make that change.
2020-06-29 13:41:10 -07:00
reins-ch
42b597fab0
🤖 Merge PR #45772 [Nightwatch] Added startWith and endWith to Expect interface by @reins-ch
* Added startWith and endWith to Expect interface

* Added test for startsWith and EndsWith

* Fixed linting errors
2020-06-29 13:12:28 -07:00
Florian Keller
6eb5c00794
[electron-packager] Remove types (#45774) 2020-06-29 15:24:29 -04:00
MachukIvan
d2a9ec89cd
Adding "translateExtent" prop type to ZoomableGroupsProps interface in react-simple-maps (#45676)
* Adding "translateExtent" type to ZoomableGroups

* Lint fixes

Added semicolon
2020-06-29 14:14:57 -04:00
Juan Pablo Solano
39b08d2f5f
Updates Netlify Identity Widget User Interface (#45762)
It seems roles are now part of the `app_metadata` attr
2020-06-29 14:11:55 -04:00
pducolin
5dc4a17838
Add className to react-rangeslider props (#45587) 2020-06-29 14:10:48 -04:00
Nathan Shively-Sanders
31c9fb1e93
update tests for @testing-library/vue, from dom (#45782)
waitForElementToBeRemoved had the wrong return type, and it got fixed in
https://github.com/testing-library/dom-testing-library/pull/631

This PR updates @testing-library/vue, which depends on
@testing-library/dom.
2020-06-29 10:23:23 -07:00
Mike Morearty
2f1ac31347
🤖 Merge PR #45778 prosemirror-view: Add 'plain' param to two APIs by @mmorearty
As of prosemirror-view 1.15, transformPastedText() and clipboardTextParser()
are passed a `plain: boolean` parameter.
2020-06-29 10:14:33 -07:00
Ryspekov Ansar
b4f5587ed2
🤖 Merge PR #45707 @types/supertest: Type declaration for agent() return type by @RayDarar
* Type declaration for agent() return type

## The case

In my project, it is essential to always clarify the variable type. In my case, writing a test suite would require to declare variables (so that they could be accessed in other scopes) and then later initialize them in a different block

## An example

```ts
describe("Health module", () => {
  // In this case I must declare variables here
  let app: NestApplication;
  let agent: any; // I could just copy and paste that huge return type, but it will break the code style. Using `any` is also a bad practice I guess

  beforeAll(() => {
    /* some code */
    // initialization goes here
   agent = supertest.agent(app.getHttpServer());
  });
  /* some code */
});
```
## Proposal

Declaring the return type of the agent function would be great, however, considering that I'm new to this library there may be a type declared already.

P.S. `SuperTestAgent` is just the first thing that I could come up with, it should be named more properly

* running lint
2020-06-29 10:13:15 -07:00
various89
3aec3632fc
🤖 Merge PR #45769 [@types/mongoose] add useUnifiedTopology options by @various89
Co-authored-by: Dominik Heigl <me@dominik-heigl.at>
2020-06-29 04:10:09 -07:00
James Hill
2dd187fbbf
🤖 Merge PR #45449 kurento-client - getServerManager() method by @jhukdev
* Updated test cases to cover other methods

* Added TypeScript 3.0 comment

* Fixed linting issues

* Added server manager method and MediaServer interface
2020-06-29 02:06:24 -07:00
Brent Thomson
3883c358b8
Server.shouldHandle can return boolean promise (#45760)
If you're doing anything interesting within `Server.shouldHandle` it's probably going to involve database queries, crypto hashing, or other features that are generally provided asynchronously. Changing the signature to allow `boolean | Promise<boolean>` fixes the compiler error that occurs if you attempt to assign an async function to `shouldHandle` (async functions must return promises, but then the function signature doesn't match).
2020-06-29 04:49:47 -04:00
Jojoshua
4be353573d
Update to tabulator-tables 4.7 (#45686)
* update to 4.7

* updates for linter
2020-06-29 04:49:00 -04:00
Piotr Błażejewicz (Peter Blazejewicz)
e51f3c2609
feat(degit): new type definition (#45756)
- definition files for 'Rich-Harris/degit'
- tests

https://github.com/Rich-Harris/degit#readme
https://github.com/Rich-Harris/degit#javascript-api

Thanks!
2020-06-29 04:46:54 -04:00
Mike Morearty
47bbd21d49
prosemirror-state and prosemirror-view: Specify 'this' binding (#45688)
* prosemirror-state and prosemirror-view: Specify 'this' binding

Various functions in prosemirror-state and prosemirror-view have specific,
documented bindings for 'this':

* All functions in EditorProps and StateField have their 'this' binding set to
  type 'Plugin' (the plugin instance)
* DirectEditorProps.dispatchTransaction() has its 'this' binding set to type
  'EditorView' (the view instance)

* Add my name to headers

* Prosemirror: Changes as per code review
2020-06-29 04:28:25 -04:00
Jon Surrell
42919bba2e
Remove @wordpress/dependency-extraction-webpack-plugin types (#45732)
Types are bundled as of version 2.7.0
2020-06-29 04:25:39 -04:00
Luksys5
b0f5ef9a01
Types.ReactSvgRadarChart. Updating the package, resolving previous comments (#45680)
* Feature.ReactSvgRadarChart. Add typings for package react-svg-radar-chart

* Feature.ReactSvgRadarChart.Adding ReadonlyArray instead of normal one

* Feature.ReactSvgRadarChart. Added more default values to show and set some properties optional.

* Adding newline where it should exist

* Remove trailing whitespace.
Adding minimum because linting throws errors other way

* Leaving the minimum ts version only

Co-authored-by: Lukas Tutkus <lukas.tutkus@macaw.nl>
2020-06-29 04:24:31 -04:00
Asitha de Silva
5572603010
🤖 Merge PR #45509 Stripe - Subscriptions Transfer Data Definition by @asithade
* Subscription Transfer Data Definition

* Missing Semi-colon

* Added Test & Fixed Optional Field
2020-06-28 12:57:19 -07:00
Sebastian Silbermann
30efa4bd9f
feat(aria-query): Update types for 4.2 (#45657)
* feat(aria-query): Update typings for 4.0.0

* feat(aria-query): Upate typings for 4.2.x
2020-06-28 04:03:27 -04:00
Piotr Błażejewicz (Peter Blazejewicz)
687a62f7db
update(cuss): minor version bump (#45665)
- v1.20
- test updated
- DT header minor change

https://github.com/words/cuss/releases/tag/1.20.0

Thanks!
2020-06-28 04:00:02 -04:00
Ole André Vadla Ravnås
ce04d8c89e
Sync frida-gum typings with Frida 12.10.1 (#45592) 2020-06-28 03:33:56 -04:00
Piotr Błażejewicz (Peter Blazejewicz)
ee7bf679ae
update(gh-pages): v3 bump (#45161)
* update(gh-pages): v3 bump

This version (as per release notes) does not change API. So this just
aligns with source code package version:

https://github.com/tschaub/gh-pages/releases/tag/v3.0.0

Thanks!

* Add `defaults` export as per PR check
2020-06-28 01:54:35 -04:00
Piotr Błażejewicz (Peter Blazejewicz)
99fe2e5223
feat(write-file-encoding): add support for encoding option (#44800)
* feat(write-file-encoding): add support for encoding option

The api supports string as an option This string option is the encodign
of the data, defaulting to 'utf8'. As the Node types are referenced,
simply BufferEncoding is beign used instead of string or string aliases
to align with Node types.
For backward compatiblity options 'encoding' is defined as:
BufferEncoding | ''

https://github.com/npm/write-file-atomic#write-file-atomic

Thanks!

* Be specific about allowed encoding as per PR comment

/cc @amcasey
2020-06-28 01:53:00 -04:00
Michael Ness
bce8dab379
🤖 Merge PR #45717 [@types/underscore] Collection and Array Tests - Type Extractors by @reubenrybnik
* Adding type extractors and updating existing tests to use them.

* Improving handling of mixed-iterability types by simplifying the Underscore and chain functions to a single overload.

* Updating TypeOfCollection to check against List and Dictionary separately instead of using Collection since using the latter behaves oddly with JQuery objects.

* Renaming a variable to something slightly more friendly.

* Renaming variables in tests.
2020-06-27 19:07:43 -07:00
Evgeniy Timokhov
eaaf689a26
🤖 Merge PR #45745 [puppeteer] Fixed return type for Frame.executionContext and ExecutionContext.queryObjects by @timocov
- Frame.executionContext returns a Promise
- ExecutionContext.queryObjects returns a Promise
2020-06-27 13:07:05 -07:00
Daniel Rearden
58752d5aff
🤖 Merge PR #45737 [superagent] Fix Request.write return type by @danielrearden 2020-06-27 02:56:21 -07:00
Adam Larsen
5ca1e873b7
🤖 Merge PR #45635 Add support for Promises in redux-api-middleware by @AdamCLarsen
* Add support for Promises in redux-api-middleware
fix

* Change promises result type def in redux-api-middleware

Reducing the duplication in the type definitions for the Promises return types in functions.
Change promises result type def in redux-api-middleware
2020-06-26 17:12:27 -07:00
Connor Peet
dedd90e20c
vscode-notebook-renderer: init (#45731)
* vscode-notebook-renderer: init

* fixup! bad username link
2020-06-26 19:08:32 -04:00
Piotr Błażejewicz (Peter Blazejewicz)
b878c634d6
feat(scroll-lock): new type library (#45735)
- definition file
- tests

https://github.com/FL3NKEY/scroll-lock#readme

Thanks!
2020-06-26 19:04:25 -04:00
ron23
26824cd54e
🤖 Merge PR #45733 [react-color] Add objectList presetColor by @ron23
* add objectList presetColor

* rename `name` to `title` and use `type`

* fix linting errors

Co-authored-by: rrosenshain <rrosenshain@snapchat.com>
2020-06-26 15:40:49 -07:00
Alex Jerabek
40e15fbd16
Add note about the Binding ID that's returned by binding events (#45730) 2020-06-26 15:36:39 -07:00
Jason O'Neill
bf2a6e1785
Fix optional parameters (#45728) 2020-06-26 14:26:49 -04:00
Maxime Chéramy
385d6cbe7a
fix: options argument is optional (#45725)
Here's the declaration of the function:

/**
 * Pull is a wrapper around createImage, parsing image's tags.
 * @param  {String}   repoTag  Repository tag
 * @param  {Object}   opts     Options (optional)
 * @param  {Function} callback Callback
 * @param  {Object}   auth     Authentication (optional)
 * @return {Object}            Image
 */
Docker.prototype.pull = function(repoTag, opts, callback, auth) {}
2020-06-26 14:26:10 -04:00
Andrew Hazlett
786d1ede43
restrict return of getCurrency() to valid values (#45671) 2020-06-26 14:24:19 -04:00
martin-badin
cf0cdcc3ab
[shopify-buy] Update types for Query interface (#45721)
Co-authored-by: Martin Badin <MBadin@gohealth.com>
2020-06-26 14:22:40 -04:00
Thomas Aribart
c7b08e7d3a
🤖 Merge PR #45726 Serverless: Add id authorizer to http api event by @ThomasAribart 2020-06-26 10:12:41 -07:00
Miklós Tusz
0d7d313118
🤖 Merge PR #45645 fix(dygraphs): Allow nullable valueRange array type by @mdtusz
* fix(dygraphs): Allow nullable `valueRange` array type 

When setting a `valueRange` option on a dygraph chart, it is valid to provide a `null` value for the range, in which case the chart range will auto-detect the upper or lower bound.

Doc reference: http://dygraphs.com/options.html#valueRange

This change modifies the required option type to accept an array with `null` elements, as well as constrains the value to be a tuple array of length 2.

* fix(dygraphs): Add `null` type for `valueRange` type union

* f
2020-06-26 10:09:45 -07:00
twsfy
daa2ee51cb
statusBarTranslucent modal prop (#45722) 2020-06-26 17:42:04 +02:00
Maciek Baron
77b1cad46f
🤖 Merge PR #45405 Update types for Shopify by @MaciekBaron
Recapitalise, add new interface
2020-06-26 08:33:50 -07:00
Yaozu Lv
6cd64665e8
Add README.md for serverless-tencent-scf (#45715) 2020-06-26 09:42:01 -04:00