Commit Graph

63074 Commits

Author SHA1 Message Date
Munif Tanjim
bd40cfc005 @types/draft-js fix mixed immutable version problem (#36402)
* @types/draft-js fix mixed immutable version problem

* bump typescript version for draft dependents
2019-06-26 11:09:07 -07:00
Maël Nison
1fce2f26d6 Adds types for the pnpapi module (#36447)
* Adds types for the pnpapi module

* Fixes headers

* Fixes linting

* More linting;
2019-06-26 11:04:14 -07:00
Jan Karres
18b72fd058 Update types for svgo@1.2.2 (#36331) 2019-06-26 10:47:44 -07:00
Kai
f08f47bde7 [@types/mapbox-gl] Add coalesce Expression (#36341) 2019-06-26 10:46:06 -07:00
Julien Giovaresco
20aff261f5 [safe-json-stringify] Update typings (#36351)
The version 1.1.0 changes the signature of `safeJsonStringify` to make
JSON.stringify's formatting and replacing capabilities available

see https://github.com/debitoor/safe-json-stringify/releases/tag/v1.1.0
2019-06-26 10:45:23 -07:00
Noah Chase
be41fb29f6 ms argument to watchStuckJobs is optional (#36295)
See 87d61503d3/lib/kue.js (L270-L273) and documentation:

> ```js
> queue.watchStuckJobs(interval)
> ```
> `interval` is in milliseconds and defaults to 1000ms
2019-06-26 10:33:26 -07:00
林集团
d3cf467af3 ramda: add support of applying chain to function type argument (#36078)
* ramda: add support of applying `chain` to function type argument

* lint

* add test for `chain`
2019-06-26 10:30:36 -07:00
William Chelman
eff7ed18e6 lodash - better return type for _.get with path in array form (#36118)
* [lodash] chore: removed trailing comma in scripts/package.json

* [lodash] fix: improved _.get return typing for up to 4 keys in path

* [lodash] chore: added William Chelman to contributors

* [lodash] fix: improved _.get return typing for up to 4 keys in path for ts >=3.1
2019-06-26 10:29:12 -07:00
Eric Taylor
0bcc63a0c5 feat(styletron-react): add injected props to StyletronComponent (#36467) 2019-06-26 10:27:49 -07:00
Florian Keller
33fad18d0f [fs-extra]: Align version (#36443) 2019-06-26 10:21:08 -07:00
Leonard Thieu
23d0420f19 [jsdom] pretendToBeVisual is a common option. (#36347) 2019-06-26 10:19:57 -07:00
Elizabeth Samuel
039804374d [office-js] [office-js-preview] Scrub Online, OWA, etc references (#36413) 2019-06-26 10:17:57 -07:00
Lingkai Shen
0385d7f65c Papaparse: Fix NODE_STREAM_INPUT for TypeScript/next test (#36419)
* separate type and value for NODE_STREAM_INPUT

* add test for NODE_STREAM_INPUT

* format
2019-06-26 10:16:40 -07:00
Derek Sifford
5cda518f79 [@wordpress/plugins] reference Dashicon.Icon from @wordpress/components (#36450)
* run prettier on all files

* fix: add reference to Dashicon.Icon for icon prop

* add reference to dependent packages
2019-06-26 10:12:16 -07:00
Rifa'i M. Hanif
aef6653bc4 [ol] Fix optional parameters in function type (#36440) 2019-06-26 10:09:57 -07:00
Derek Sifford
e9d771c356 [@wordpress/data][@wordpress/rich-text] tightly couple stores together and augment data functions from each package (#36422)
* [@wordpress/data][@wordpress/rich-text] tightly couple stores together and augment data functions from each package

* fix lint issue

* fix: reference @wordpress/element rather than react directly
2019-06-26 10:02:52 -07:00
Brandon
d01c3d129d [openid-client]: fix Issuer constructor; improve object typing and return types (#36334)
* fix Issuer constructor; improve object typing and return types

* missed an optional parameter identifier

* revert change to any return type

* revert change to object type
2019-06-26 10:01:58 -07:00
Arvydas K
33e3083d5f Add missing option delayUpdate (#36427) 2019-06-26 10:00:25 -07:00
Joseph Wynn
36a835094d npmlog: Add missing functions by extending EventEmitter #35795 (#36417)
* npmlog extends EventEmitter

* Add missing log levels

* Modify import in tests to avoid having custom tslint
2019-06-26 09:57:46 -07:00
ghosttie
ef62bec34c [Bootstrap-3-Typeahead] change type of item param of Options.afterselect to any (#36359)
* change type of item param of Options.afterselect to any

* change type of item param of Options.afterselect to string|object
2019-06-26 09:55:40 -07:00
Matthias Kunnen
d60528f838 [serialport] Add error nullability (#36451)
* [serialport] Fix error in callback can be null

Most methods are inherited from Node stream and according to types that
means that the err parameter can be null or undefined.

See https://serialport.io/docs/guide-usage and look for function(err).
See ef80d83080/packages/serialport/test/integration.js (L55)

* [serialport] Add correct type to test_list_ports_promise

* [serialport] Enabled strict-type-predicates for testing
2019-06-26 09:48:55 -07:00
Gerasimos (Makis) Maropoulos
882da69fd0 Update neffos.js definition file (#36452)
* Update neffos.js definition file

* fix def file linting issues - it's added to the deployment process now as well
2019-06-26 09:47:36 -07:00
Paweł Dąbrowski
fc01ec61b4 fix array.compact rejector type (#36449) 2019-06-26 09:47:02 -07:00
Florian Keller
e627b5b66b [electron-packager]: Update types to 14.0 (#36441) 2019-06-26 09:46:22 -07:00
Dirk Groenen
1fa08d6f12 Add correct Promise return types (#36312) 2019-06-26 09:43:58 -07:00
Thibault MOCELLIN
b1d4a8a76a [parse] add definition for linkWith & _linkWith (#36258) 2019-06-26 09:42:45 -07:00
Sergio Arbeo
7ec5193126 Change main contributor in chromecast-caf-receiver (#36315) 2019-06-26 09:41:49 -07:00
bookmoons
7d19fc7272 [k6] Update for latest version (#36432)
* k6: Add author

* k6: Normalize indenting

Indenting was inconsistent.
Normalizes to the recommended 4 spaces.

* k6: Use TypeScript 3.4

* k6: Document version 1.0

* k6: Update project address

* k6: Normalize formatting

Uses the repo formatter to normalize code format.

* k6: Define byte array

* k6: Document init context availability

* k6: Document fail never returns

* k6: Collapse function definitions

For consistency with the example package.

* k6: Aggregate functions

* k6: Alphabetize files

* k6: Factor init context

* k6: Remove dom depend

The DOM is not present in the k6 custom runtime environment.

* k6: Simplify manifest

* k6: Rename init global

* k6: Add factored global tests

* k6: Define console

* k6: Remove global import

Seems to be loaded implicitly.

* k6: Define __VU

* k6: Define __ITER

* k6: Define __ENV

* k6: Test excess open args

* k6: Correct version

The version mentioned in the k6 docs seems to be wrong.
The latest version in the repo is v0.24.0.

* k6: Add factored check tests

* k6: Factor checker routine

* k6: Add factored fail tests

* k6: Add factored group tests

* k6: Add factored sleep tests

* k6: Define encoding

* k6/crypto: Support all string encodings

* k6/crypto: Define hmac

* k6/crypto: Define md4

* k6/crypto: Define md5

* k6/crypto: Define sha1

* k6/crypto: Define sha256

* k6/crypto: Define sha384

* k6/crypto: Define sha512

* k6/crypto: Define sha512_224

* k6/crypto: Define sha512_256

* k6/crypto: Define ripemd160

* k6/crypto: Aggregate types

* k6/crypto: Define createHash

* k6/crypto: Define Hasher

* k6/crypto: Define randomBytes

* k6/crypto: Order types to bottom

* k6/http: Define cookieJar

* k6/http: Define CookieJar.set

* k6/http: Define CookieJar.cookiesForURL

* k6/encoding: Order types to bottom

* k6/http: Brand CookieJar

* k6: Order types to bottom

* k6/crypto: Brand Hasher

* k6: Document branding

* k6/http: Define get

* k6/http: Define Response

* k6/http: Factor body type refinement

Enables typing user variables with nongenerics.

* k6/http: Define Response.json

* k6/http: Define Response.clickLink

* k6/http: Correct Response.clickLink header

* k6/http: Define Response.submitForm

* k6/http: Support null params

* k6/http: Centralize example address

* k6/http: Define post

* k6/http: Define del

* k6/http: Define options

* k6/http: Document generics purpose

* k6/http: Define patch

* k6/http: Refine comment

* k6/http: Define put

* k6/http: Correct body refinement

* k6/http: Simplify comment

* k6/http: Define request

* k6/http: Define batch

* k6/http: Define file

* k6: Remove centralized tests

Replaced with factored tests.

* k6: Use protected branding

Enables branding class hierarchies.

* k6/http: Update formatting

* k6/metrics: Define Counter

* k6/metrics: Define Gauge

* k6/metrics: Define Rate

* k6/metrics: Define Trend

* k6: Make noninstantiable classes abstract

* k6/ws: Define connect

* k6/http: Prefer interfaces

* k6/ws: Define Socket.on

* k6/ws: Define Socket.send

* k6/ws: Define Socket.ping

* k6/ws: Define Socket.close

* k6/ws: Define Socket.setTimeout

* k6/ws: Define Socket.setInterval

* k6/html: Define parseHTML

* k6/html: Specify optional return types

* k6/html: Define Element

* k6/html: Define HrefElement

* k6/html: Define MediaElement

* k6/html: Define FormElement

* k6/html: Define LabelElement

* k6/html: Define FormFieldElement

* k6/html: Define TableSectionElement

* k6/html: Define TableCellElement

* k6/html: Define CanvasElement

* k6/html: Define OptionElement

* k6/html: Define DataListElement

* k6/html: Define FieldSetElement

* k6/html: Define InputElement

* k6/html: Define KeygenElement

* k6/html: Define LegendElement

* k6/html: Define LinkElement

* k6/html: Define MapElement

* k6/html: Define MeterElement

* k6/html: Define ObjectElement

* k6/html: Define OutputElement

* k6/html: Define ProgressElement

* k6/html: Define ScriptElement

* k6/html: Define SelectElement

* k6/html: Define StyleElement

* k6/html: Define TableElement

* k6/html: Define TableRowElement

* k6/html: Define TableColElement

* k6/html: Define TextAreaElement

* k6/html: Define TitleElement

* k6/html: Define leaf elements

* k6: Define options

* k6: Type global environment from index
2019-06-26 09:40:45 -07:00
Coskun Deniz
1f2735eb39 [@types/vimeo__player] Update typings to match the latest api version 2.9.1 (#36321)
* Update typings to match v2.7.0

* Update typings to match v2.8.0

* Update version number to v2.9.1 as there is no type changes

* Fix linting

* Update types as requested in the CR

* Linting

* Introduce VimeoTimeRange tuple

* linting

* Add missing options
2019-06-26 09:20:50 -07:00
Weyert de Boer
cfc586791d Updated type defs for @testing-library/user-event (#36444)
* fix: updated the type definitions for @testing-library/user-event

* just make changes to testing-library__user-event

* take 2

* updated type defs

* cleaned up formatting

* fix naming

* attempt to fix the type defs

* chore: updated tsconfig.json

* remove whitespace

* fix whitespace

* chore: attempt to fix both user-event packages

* chore: formatting code
2019-06-26 13:51:22 +01:00
Nathan Shively-Sanders
2ceda6e7ea
Add WindowOrWorkerGlobalScope.fetch (#36453)
This is compatible with TS3.6 and above.
2019-06-25 12:39:47 -07:00
Florian Keller
c51dc8610d [electron-packager] Add all osx-sign options (#36435) 2019-06-25 10:22:31 -07:00
Julia Shestakova
efa6b9e11e Fix react-beautiful-dnd DropAnimation types (#36345) 2019-06-25 00:09:08 -07:00
jhey tompkins
f6da6d304a [@types/baseui] update version + maintainers (#36245)
* [@types/baseui] update version + maintainers

* Align
2019-06-24 16:35:56 -07:00
Nathan Shively-Sanders
957237df16
Move ExpectError in hummus-recipe tests (#36414)
TS3.6 moves the location of 'wrong number of parameters' error for
property accesses. This change makes the tests work with all versions of
Typescript.
2019-06-24 15:31:16 -07:00
Harry Hedger
4b1fb53cd3 Added typedef and tests for @reach/alert-dialog and @reach/dialog (#36369) 2019-06-24 13:01:52 -07:00
Chris Drackett
af9ceddfdf little-loader types (#36127)
* adding types for little-loader

* adding support files

* use 4 spaces

* export directly

* export default?

* I'm so confused.

* going back to original. giving up.

* missing version and ;

* trying to just export a function one more time...

* remove export?

* *sigh*

* updating import on test

* context is optional

* update to deal with options case.

* remove unnecessary generic?
2019-06-24 13:00:42 -07:00
Derek Sifford
d54c178c24 [@wordpress/components] add new definitions (#36184)
* [@wordpress/components] add new definitions

* add missing "files" property to tsconfig

* fix lint issues

* fix path mapping issue

* add all files to tsconfig explicitly

* add reference to @wordpress/rich-text "Value" type
2019-06-24 13:00:17 -07:00
Søren Englund
922de6d1a7 Update type definitions for react-image-crop (#36124)
* Updated type definitions for react-image-crop

* Added a subfolder for the v7 type declerations
2019-06-24 12:59:14 -07:00
Lukas Bünger
92c707eed0 [@types/slate] Support nested plugin stacks on the "plugins" c… (#36349)
* fix: editor takes a recursively nested plugin stack as contructor argument

* chore: formatting

* refactor: remove obsolete list type. naming

* fix: enforce a list as root data type.

* Update index.d.ts
2019-06-24 12:55:21 -07:00
Alex Jerabek
64175d87d6 [office-js, office-js-preview] Adding warnings to known set-together structs (#36356)
* Adding warnings to known set-together structs

* Better warning wording
2019-06-24 12:53:24 -07:00
Ilyes Kechidi
f97a959172 added VictoryDatableProps to VictoryGroupProps (#36400) 2019-06-24 12:52:30 -07:00
Christian Schuhmann
893b61cc8a [lingui__react] Add missing properties to I18nProvider (missing, locales) (#36264)
* Add missing properties to I18nProvider

* Fix usage of `Function`
2019-06-24 12:51:59 -07:00
Alexander Ivanov
08bab0b659 [types/google-apps-script] Blob extends BlobSource (#36279)
* Blob extends BlobSource

Signed-off-by: Alexander Ivanov <oshli.a.er@gmail.com>

* Extra spaces

Signed-off-by: Alexander Ivanov <oshli.a.er@gmail.com>
2019-06-24 12:51:48 -07:00
ᎷᎪᎢᎬᏌᏚᏃ ᎢᏌᎡᏟᏃᎪ
545e576c1c [@types/codemirror] Add boolean type to autoCloseBrackets option (#36323)
Currently definition for autoCloseBrackets doesn't allow boolean values, which
is wrong. Setting autoCloseBrackets to true enables autoclosing feature with
the default settings, as is visible in the source code of a demo on the
CodeMirror's official website: https://codemirror.net/demo/closebrackets.html

var editor = CodeMirror.fromTextArea(document.getElementById("code"), {autoCloseBrackets: true});
2019-06-24 12:51:17 -07:00
Sergio Arbeo
4f3e646ab1 Improve PlayerData in chromecast-caf-receiver (#36287)
* Improve PlayerData in chromecast-caf-receiver

Improve PlayerDataEventType (taken directly from the Chromecast) and the
PlayerDataBinder constructor (can be checked in documentation here
https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.ui.PlayerDataBinder#constructor_1
)

PlayerData needs to be instantiatable as well (see screenshot showing it
is a constructor).

* Fix test

* Update all classes and enums accessible from PlayerData

* Remove package.json

* Fix tests

* Update tests
2019-06-24 12:50:03 -07:00
Kyle Robinson Young
0a252fb08b jqXHR.abort has an optional statusText parameter (#36335) 2019-06-24 12:48:27 -07:00
Richard Tan
350abf6a9a react-tagsinput: expose renderLayout (#36304)
* react-tagsinput: expose renderLayout

Exposing `renderLayout` type to be imported by consuming projects.

* Update index.d.ts
2019-06-24 12:48:09 -07:00
jjsiman
5029800621 [@types/highcharts] Added type for gridLineInterpolation (#36333)
* Adding typing for gridLineInterpolation

gridLineInterpolation: string

Polar charts only. Whether the grid lines should draw as a polygon with straight lines between categories, or as circles. Can be either circle or polygon.

Defaults to undefined.

Reference: https://api.highcharts.com/highcharts/yAxis.gridLineInterpolation

* Removing trailing whitespace
2019-06-24 12:47:26 -07:00
Michael Franklin
5c96a08b30 Add 'object' as allowed type for Query.lean (#36343) 2019-06-24 12:46:08 -07:00