Commit Graph
68429 Commits
Author SHA1 Message Date
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
Matt Sutkowski e32bd1162d Add types for @hcaptcha/react-hcaptcha (#43790)
* Add types for @hcaptcha/react-hcaptcha

* Fix version

* Use export = syntax
2020-04-10 08:23:33 -07:00
Spencer Corwin 6e6fcedcfe fix(koa-helmet): update types for koa-helmet (#43650) 2020-04-10 08:22:19 -07:00
tscpp 7d0e99995f Add gulp-minify (#43766)
* gulp-minify init

* Definitions by

* prettier

* test

* update

* update

* update

* update
2020-04-10 08:21:38 -07:00
xlfsummer d1c90cd6e5 fix(uni-app) drawImage function signature error, add overload signature (#43657)
* fix: 修复 drawImage 参数名错误,增加重载类型

* fix: uni-app drawImage 移除参数可选属性, 使通过测试
2020-04-10 08:20:42 -07:00
JounQin 31d22b6594 feat: add definition for prettier-linter-helpers v1.0 (#43776) 2020-04-10 08:20:14 -07:00
Cameron Knight 69f5a30b3c Add ms.macro (#43789) 2020-04-10 08:18:30 -07:00
Richard Simko 43d1dd86ec Added parse-duration (#43796) 2020-04-10 08:17:52 -07:00
Dasa Paddock 1a9431f33a Update for ArcGIS API for JavaScript version 3.32 (#43785) 2020-04-09 14:49:32 -07:00
Oliver Joseph Ash 62e64f0335 Express: add missing generics (#43764)
* Add missing generics

* Fix line length

* Fix dependency tests
2020-04-09 13:20:43 -07:00
MatejSkrbisandmatejss 0fd9f67701 Added oauth to braintree gateway. (#43778)
Co-authored-by: matejss <matejss@inova.si>
2020-04-09 13:19:42 -07:00
hans-stripe 11eced8634 [chrome] Update types for chrome.enterprise.platformKeys APIs (#43753)
* Correct getTokens() typo

* Add missing platformKeys APIs

* Use proper Markdown
2020-04-09 13:19:07 -07:00
Jonathan BurkeandJonathan Burke 1478539f98 [mongoose]: allow numbers to be typed corrently when used as _id (#43760)
Co-authored-by: Jonathan Burke <jonathan.burke@codecentric.de>
2020-04-09 13:17:20 -07:00
Mizumaki Ryota 0448b7d88e Fix bull.js type (#43772)
Use `JobStatus`, not `string`
2020-04-09 13:16:30 -07:00
Matt RothenbergandIgor Oleinikov f2cdef2bb9 [react-query] expose canFetchMore boolean on useInfiniteQuery result (#43771)
* fix: expose canFetchMore boolean on useInfiniteQuery result

* Update types/react-query/index.d.ts

Co-Authored-By: Igor Oleinikov <igor@oleinikov.ru>

Co-authored-by: Igor Oleinikov <igor@oleinikov.ru>
2020-04-09 13:15:18 -07:00
omjadas 8f19d2dd2e update throwException types (#43626) 2020-04-09 13:14:27 -07:00
Aaron Beall 325b3e9b79 Added stub definitions for react-bootstrap v1.0 (#43756)
* Added missing $filter overload

Added missing $filter overload that allows multiple strings to translate and returns an object

* Added v1 dir with stub

* Updated def header

* Added v1/tsconfig.json to make publisher happy

* Added index.d.ts to files

* Added paths per build failure

* Moved paths to the right tsconfig

* Fixed path mapping
2020-04-09 13:12:51 -07:00