Commit Graph
68445 Commits
Author SHA1 Message Date
Sankarsan Kampa 7cdf68a2b3 types(discord-rpc): update types for {start,end}Timestamp (#43833)
startTimestamp & endTimestamp supports both Date & number
2020-04-13 12:07:53 -07:00
Basti Ortiz f8797c8d40 [@types/spotify-api]: Add the appropriate descriptions for fields in artist, playlist, and track objects (#43835)
* Format: fix spacing format

* Meta: add name to the contributors list

* Fix: specify the only possible options for album_group and album_type

Source: https://developer.spotify.com/documentation/web-api/reference/object-model/#album-object-simplified

* Docs: include official documentation for descriptions in album objects

Source: https://developer.spotify.com/documentation/web-api/reference/object-model/#album-object-full

* Meta: include name in the tests file

* Docs: update the `SearchForItemParameterObject` by adding the field `include_external`

Source: https://developer.spotify.com/documentation/web-api/reference/search/search

* Format: fix inconsistent field delimiters

* Docs: include documentation for artist objects

Source: https://developer.spotify.com/documentation/web-api/reference/object-model/#artist-object-full

* Docs: include documentation for followers object

This also includes a type fix. Currently, the Web API does not support
the `href` field. It is temporarily there as a placeholder for the
future feature.

Source: https://developer.spotify.com/documentation/web-api/reference/object-model/#followers-object

* Docs: include documentation for image objects

Source: https://developer.spotify.com/documentation/web-api/reference/object-model/#image-object

* Docs: include documentation for error objects

Source: https://developer.spotify.com/documentation/web-api/reference/object-model/#error-object

* Format: remove type definitions to inline them instead

* Docs: include documentation for track objects

Source: https://developer.spotify.com/documentation/web-api/reference/object-model/#track-object-full

* Format: remove double quotes from field names

* Fix: make `is_local` an optional field for track objects

* Fix: move `is_local` to definition of only full track objects

* Format: extend similar artist, playlist, and album objects as context objects

* Docs: include documentation for playlists

Source: https://developer.spotify.com/documentation/web-api/reference/object-model/#playlist-object-full
2020-04-13 12:00:19 -07:00
Frédéric Barthelet 491e0d5730 Add ApiGatewayEvent type (#43824) 2020-04-13 11:59:11 -07:00
Jack Bates 0334941669 [jsoneditor] Enable strictNullChecks (#43828) 2020-04-13 11:57:59 -07:00
Olivier Tassinari 8801f8c5a5 [react-window] Fix optional shouldForceUpdate (#43820)
Same patch as https://github.com/bvaughn/react-window/pull/450
2020-04-13 11:56:45 -07:00
zvs001 464b62da87 seamless-immutable. allow immutable instance for merge method (#43808) 2020-04-13 11:54:38 -07:00
jbandjblaise c9f36a9e0c Fix TransformOptions' callback (#43711)
Make it usable in object mode

Co-authored-by: jblaise <8171322+jblaise@users.noreply.github.com>
2020-04-13 11:54:11 -07:00
JounQin ebd96572dd fix: exports of eslint-plugin-prettier changed (#43817) 2020-04-13 11:50:37 -07:00
Yashar MoradiandYashar Moradi f5ad8554cd fix: fixing the types for browse function results (#43795)
* fix: fixing the types for browse function results

* Added the missing reading_time to the PostOrPage type
* Introduces the BrowseResults (an array augmented with metadata)
* Included a Constructor function

BREAKING CHANGE: The following types are remapped as follows:
* `PostObject` --> `PostsOrPages`
* `AuthorsObject` --> `Authors`
* `TagsObject` --> `Tags`
* `Setting` --> `Settings`
* `SettingsObject` --> `SettingsResponse`

Partly inspired by this PR from Oliver Emery <https://github.com/thrymgjol>

* corrected line terminator

* code formatting corrected

Co-authored-by: Yashar Moradi <yashar.moradi@scoperty.de>
2020-04-13 11:49:20 -07:00
r1b add4fc1a34 fix(ws): options is optional on createWebSocketStream (#43784) 2020-04-13 11:47:56 -07:00
Piotr Błażejewicz (Peter Blazejewicz) 558edadd09 update(karma): update version to v5 (#43813)
- v4 backward compatible version created
- minor change for v5 compatiblity (native Promise usage, all other are
minor and are not directly covered in type definition):

https://github.com/karma-runner/karma/compare/v4.4.1...v5.0.0

Thanks!
2020-04-13 11:18:08 -07:00
AlCalzone f13cbb33c6 [iobroker] add user property to state and make val required in setState (#43844) 2020-04-13 11:14:47 -07:00
Rick-Kirkham c7d0c49dbd [office-runtime] remove APIs that were moved to Office namespace or just deprecated (#43861) 2020-04-13 11:05:27 -07:00
Ben Lichtman 72f41db4b4 Remove owner from mongoose-simple-random (#43712) 2020-04-13 10:26:44 -07:00
Aziz Yuldoshev 34698fefff webpack: Add typings for ChunkGroup, and mainTemplate hooks (#43818)
* [webpack] add compilation.addChunkInGroup method

Links:
- https://github.com/webpack/webpack/blob/v4.42.1/lib/Compilation.js#L1485

* [webpack] add mainTemplate.hooks.afterStartup and hashForChunk typings

Links:
- https://github.com/webpack/webpack/blob/v4.42.1/lib/MainTemplate.js#L102
- https://github.com/webpack/webpack/blob/v4.42.1/lib/MainTemplate.js#L127

* [webpack] add compilation.ChunkGroup typings

Links:
- [chunks](https://github.com/webpack/webpack/blob/v4.42.1/lib/ChunkGroup.js#L70)
- [childrenIterable](https://github.com/webpack/webpack/blob/v4.42.1/lib/ChunkGroup.js#L240)
- [parentsIterable](https://github.com/webpack/webpack/blob/v4.42.1/lib/ChunkGroup.js#L281)
- [insertChunk](https://github.com/webpack/webpack/blob/v4.42.1/lib/ChunkGroup.js#L158)
- [getNumberOfChildren](https://github.com/webpack/webpack/blob/v4.42.1/lib/ChunkGroup.js#L236)
- [module index methods](https://github.com/webpack/webpack/blob/v4.42.1/lib/ChunkGroup.js#L456-L492)
- [addChild](https://github.com/webpack/webpack/blob/v4.42.1/lib/ChunkGroup.js#L224)
- [removeChild](https://github.com/webpack/webpack/blob/v4.42.1/lib/ChunkGroup.js#L244)
- [setParents](https://github.com/webpack/webpack/blob/v4.42.1/lib/ChunkGroup.js#L266)
2020-04-12 21:53:43 +01:00
OrtaandNathan Shively-Sanders 72c1e33e13 Improve docs on 'testing' a dt module (#43748)
* Improve docs on 'testing' a dt module

* Duplicate saying how you can test your tests

* Apply suggestions from code review

Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

* Update docs with recommendations

* Apply suggestions from code review

Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

* Changes from reviews and link from the PR template

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-04-11 13:40:47 -04:00
Liam Martens 539042117c Added typing for abs-svg-path (#43807)
* Implemented abs-svg-path typings

* Fixed abs path test

* Fixed ExpectType
2020-04-10 20:26:27 -07:00
Tomasz Pluskiewicz 6ec9e84831 feat: new options for express handler (#43761) 2020-04-10 20:24:08 -07:00
Brandon Waterloo [MSFT] 64968e5677 [@types/dockerode]: add SSH options to DockerOptions interface (#43781)
* Update dockerode-tests.ts

* Update interface and fix test
2020-04-10 20:22:50 -07:00
Maksymilian Chmiel 5e8098e52f [@types/async-lock] Add missing skipQueue attr to the AsyncLockOptions (#43767) 2020-04-10 20:22:25 -07:00
Steven Collins 71f6d8f937 Add asymmetricSign() to @types/google-cloud__kms (#43658)
* Add name to definitions

* Add definitions for asymmetricSign
2020-04-10 20:16:54 -07:00
Jakub Kisielewski 1587514c91 [node-fetch] fix blob() return type (#43803)
* [node-fetch] fix blob() return type

* [node-fetch] add test for response return types

* [node-fetch] add shameless mention of my name
2020-04-10 20:15:31 -07:00
Santiago Kent 363a77c776 [@types/carbon-components-react] Fixed MultiSelect and MultiSelect.Filterable types (#43809)
* [@types/carbon-components-react]Fixed typings for MultiSelect and MultiSelect.Filterable

* Changed placeholder prop to be required
2020-04-10 20:14:54 -07:00
Piotr Błażejewicz (Peter Blazejewicz) ee09e131a2 update(cuss): bump to v 1.19 (#43811)
- Portuguese language added
- tests updated

Thanks!
2020-04-10 20:14:23 -07:00
James BaxterandJames Baxter b48d1c5ab9 added repeat time to react-native-push-notification (#43812)
* added repeat time to react-native-push-notification

* fixed casing

Co-authored-by: James Baxter <james.baxter@hgem.com>
2020-04-10 20:13:54 -07:00
Daniel Cassidy c741b09811 jsdom: ResourceLoader#fetch may return null (#43669)
According to the jsdom documentation, ResourceLoader#fetch may return
null to indicate that the resource was intentionally not loaded.
2020-04-10 19:46:26 -07:00
Jimmy Jia 3788b96caa chore: Broaden graphql range for graphql-relay (#43597)
* chore: Broaden graphql range for graphql-relay

* poke ci
2020-04-10 19:45:52 -07:00
Piotr Błażejewicz (Peter Blazejewicz) d92f6a5650 feat(node-md5): minor change to support options (#43618)
- version bump to 2.2
- creation time options support
https://github.com/pvorb/node-md5/blob/master/md5.js#L150
- minor changes to rebrush package definition.

Thanks!
2020-04-10 19:45:17 -07:00
Piotr Błażejewicz (Peter Blazejewicz) c9f8669862 update(express-sitemap-xml): align with v1.1 (#43619)
- minor changes to structure and JSDoc
- version bump to current 1.1
- mantainer added

https://github.com/feross/express-sitemap-xml#api

Tnanks!
2020-04-10 19:43:08 -07:00
Junxiao Shi 18d07f6b56 read-json-sync: initial definition (#43755) 2020-04-10 19:42:45 -07:00
Raphaël L 368934537f Add types for package react-combine-reducers (#43749)
* Add types for react-combine-reducer

* Run prettier on react-combine-reducers

* Fix linter issues
2020-04-10 19:42:19 -07:00
Ian Sanders 206382727b [draft.js] Add missing aria props, KeyBindingUtil.usesMacOSHeuristics, and change comments to JSDoc (#43736)
* Add aria-labelledby prop

* Change comments to JSDoc format

* Add ariaOwneeID prop

* Remove trailing whitespace

* Add usesMacOSHeuristics to KeyBindingUtil
2020-04-10 19:37:37 -07:00
Arend van Beelen jrandAntoine Lépée 9c66c5d923 js-cookie: Allow capitalized values in sameSite attribute. (#43769)
* Update index.d.ts

Allow capitalized value in `sameSite` attribute. This is the capitalization as documented on MDN (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie), so it makes sense to support them this way.

* Fix typo.

Co-Authored-By: Antoine Lépée <205357+alepee@users.noreply.github.com>

Co-authored-by: Antoine Lépée <205357+alepee@users.noreply.github.com>
2020-04-10 19:37:04 -07:00
Dmytro Gokun daa7c94f57 [mapbox-gl] update to mapbox-gl 1.9 (#43792) 2020-04-10 19:35:40 -07:00
Eyas 6f7d6c01da react-router-dom: Correct type for ref in Link<S> (#43428)
* no-op: Run prettier --write on react-router-dom.

* Allow correct "ref" to be passed Link.

"ref" can be used rather than "innerRef" to return a ref to the <a>
element inside of <Link>.

See:

[1]: reacttraining.com/react-router/web/api/Link/innerref-function

  Where it says:

  > As of React Router 5.1, if you are using React 16 you should not
  > need this prop because we forward this ref to the underlying <a>.
  > Use a normal ref instead.Allows access to the underlying ref of the
  > component.

[2]: https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/modules/Link.js#L74-L121

  Link is the result of forwardRef rather than an actual React class.

  This implies a few things:

  1. It is a function (see the return type of
      React.ForwardRefExoticComponent) rather than a class
  2. Its reference is to an inner <a> element, rather than what's in
    React.Component, which is a Ref to the element itself.

This introduces a potential incompatibility where users can't use
"new Link" anymore. But that reflects reality (Link is callable not
newable).

Since Link was previously exported as a class, we need to continue to
support it being used as both a type and a value. Since Link was
exported as a generic, we need to continue to support that. As a result:

1. Link is exported as a function that happens to implement the type
  corresponding to the result of
  `forwardRef<HTMLAnchorElement, LinkProps<S>>`.

2. Link is still exported as a type (interface) which is the same as
  that of the return value of `forwardRef<...>`.

* Make sure Link<S> can be used as a generic.

This is is only supported in TS >= 2.9.

I bumped the minimum TS supported version to 2.9 since 2.8 support ends this
month anyway.

* Apply prettier --write to tests.

* Apply same change (forwardRef) to NavLink.

1. https://reacttraining.com/react-router/web/api/NavLink

    NavLink is a version of <Link> with the same props.

2. NavLink is similarly implemented in terms of forwardRef, so all
    the justification from the previous commit applies. See:

    https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/modules/NavLink.js

* To maintain TS 2.8 compatibility, use
React.createElement to test Link<{foo:number}>
and NavLink.

When TS 2.8 compatibility is no longer needed, this CL can be reverted
as-is.
2020-04-10 19:34:10 -07:00
Rodrigo Saboya b6dcecae25 Separating client and middleware options into 2 separate types (#43625) 2020-04-10 17:16:06 -07:00
John Walley 044179cf38 d3-simple-slider type definitions (#43705) 2020-04-10 17:10:10 -07:00
Piotr Błażejewicz (Peter Blazejewicz) 776caac7f5 feat(png-img): type definition for v2.3 (#43750)
- declaration file
- tests

https://github.com/gemini-testing/png-img#api

Thanks!
2020-04-10 17:08:56 -07:00
Rory O’Kane fe4a8005c5 Add types for baretest 1.0 (#43752)
* Add types for baretest 1.0

These files were based on the template written with `npx dts-gen --dt --name baretest --template module`.

* Update baretest’s types for v2.0
2020-04-10 17:07:18 -07:00
Matthew Sainsbury 75223873e6 adm-zip: add overload of toBuffer (#43591) 2020-04-10 16:53:11 -07:00
Tanguy Krotoff 42101fa4a0 [bookshelf] Update knex dependency (#43581)
* node_modules/knex/types/index.d.ts requires TypeScript 3.4

* Update knex dependency

* Switch to strict: true

* Fix error "Property 'model' has no initializer and is not definitely assigned in the constructor."

* Update Model-instance-related example

* Tests fail with TypeScript 3.5 :-/

* Rename/remove certain lodash functions from Bookshelf v0.10.0

See https://github.com/bookshelf/bookshelf/blob/1.1.1/CHANGELOG.md#breaking-changes-4
2020-04-10 16:49:21 -07:00
Dasa Paddock 4a4fbabbcb Update for ArcGIS API for JavaScript version 4.15 (#43786) 2020-04-10 16:45:49 -07:00
Tim Düsterhus 6246caee64 Revert "ssh2: Fix callback types (#42823)" (#43583)
This reverts commit c65e5f7549.
2020-04-10 16:43:28 -07:00
Roman Komarov 61d1a459fb [react-table] More strict types for columns (#43714)
* [react-table] Make Columns a union type to make it stricter

* [react-table] Make the CellValue generic and allow columns with a string accessor to type it

* [react-table] Better handle non-typed columns

* [react-table] Update the Readme with a Changelog

* [react-table] Removed the unnecessary wording

* [react-table] Added the guesstimate version of types package to changelog
2020-04-10 15:11:23 -07:00
Rifa'i M. Hanif b34ce698a0 [@types/ol] Update to OpenLayers v6.3.1 (#43793) 2020-04-10 15:10:27 -07:00
duduluu abf12473cf [markdown-it] Update types for markdown-it v10.0.0 (#42860)
* [markdown-it] Upgrade for v10.0.0

* [markdown-it]: rollback ts version to 2.0 and complete tests

* [prosemirror-markdown]: fix test due to markdown-it types update
2020-04-10 11:39:40 -07:00
JeffJiang e4ebca70c7 Add url field for PutObjectResult (#43699) 2020-04-10 10:42:02 -07:00
mtgto 36d0ed0829 [codemirror] Add lacked arguments of runMode (#43629) 2020-04-10 08:49:52 -07:00
Jack Bates f020953f46 [nodemailer-ses-transport] Enable strictNullChecks (#43645) 2020-04-10 08:42:04 -07:00
Jack Bates 5dacdf7c0f [moment-timezone] Enable strictNullChecks (#43640) 2020-04-10 08:27:42 -07:00