Commit Graph
68458 Commits
Author SHA1 Message Date
Piotr Błażejewicz (Peter Blazejewicz) 8d4301f28e feat(pretty-quick): new type definition (#43867)
- definition file
- tests

https://www.npmjs.com/package/pretty-quick

Thanks!
2020-04-13 15:31:23 -07:00
Hikiko 1b16fc8837 [vk-openapi] add typings (#43853) 2020-04-13 15:29:46 -07:00
Piotr Błażejewicz (Peter Blazejewicz) a0a52a6a3d feat(pre-suf): new type definition (#43866)
- declaration file
- tests

https://github.com/kaelzhang/node-pre-suf

Thanks!
2020-04-13 15:27:17 -07:00
Elizabeth Samuel 275fd285c4 [office-js] [office-js-preview] (Excel) Add closing backtick (#43874) 2020-04-13 14:33:30 -07:00
Elizabeth Samuel e481c13279 [office-js] [office-js-preview] Remove broken links (#43871) 2020-04-13 14:09:48 -07:00
Elizabeth Samuel c95cc591ce [office-js-preview] (Outlook) Fix broken link (#43869) 2020-04-13 13:55:54 -07:00
Chris Grigg 5c3b82aaf8 yup: add generics to string to support string literal return (#43860) 2020-04-13 13:04:32 -07:00
Naseem eb55031fbd add formatters to pino's LoggerOptions (#43847)
A new option that deprecates other ones, please see https://github.com/pinojs/pino/blob/master/docs/api.md\#formatters-object for more details.

Signed-off-by: Naseem <naseem@transit.app>
2020-04-13 13:03:59 -07:00
Igor Strebezhev 64989f4ed4 Update docs of mongodb BulkWriteResult type (#43855)
* Update docs of mongodb BulkWriteResult type

* Update index.d.ts
2020-04-13 13:03:15 -07:00
bennordgengo 2dd734125b wavesurfer.js add many missing methods in version 3.3 (#43851)
* add types for v3.3.1,  fix alphabetical order

* header remove patch version

* Object to object
2020-04-13 13:02:05 -07:00
Piotr Błażejewicz (Peter Blazejewicz) 0e1b33ddab update(uglfy-js): Minor updates and version bump (#43868)
- bump to version 3.9
- correct options for Minify compress options as it accepts only false
or configuration object as per JSDoc comment
- add JSDoc comments for Minify options
- minor addition to the tests
- remove TS version header line as no longer valid (current defaults to
TS 2.8 or newer)

https://github.com/mishoo/UglifyJS2/releases/tag/v3.9.0

Thanks!
2020-04-13 20:59:04 +01:00
Piotr Błażejewicz (Peter Blazejewicz) c2f36d4a1d update(twemoji): add support for UMD module (#43841)
This is minor change, providing support for UMD module, allowing to use
the definition file directly in other scenarios.

- definition file change with namespace export
- document library export
- split tests for CommonJS and global code tests

Usage is promoted as UMD module via CDN:
https://github.com/twitter/twemoji#cdn-support

Use-case:
- vanilla JS
- TS configured to not emit, check JS for errors:

```js
/// <reference types="twemoji" />

window.addEventListener('DOMContentLoaded', event => {
    const div = document.createElement('div');
    div.textContent = 'I \u2764\uFE0F emoji!';
    document.body.appendChild(div);
    twemoji.parse(document.body);
});
```

Thanks!
2020-04-13 12:10:13 -07:00
kouame komenan 38622803f8 react-simple-maps | Changed ProjectionConfig interface to match the requested props in the react-simple-maps library (#43830)
* Changed ProjectionConfig interface to match the requested prop

* included name
2020-04-13 12:08:25 -07:00
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