Commit Graph
67940 Commits
Author SHA1 Message Date
Christian Tellnes 65988eac2a Improve types for Primus (#43297) 2020-03-22 13:46:30 -07:00
asyed94 628419fc4f Adds crypto_sign_*, crypto_auth_*, and crypto_scalarmult_* constants (#43274)
These constants are documented here:
https://libsodium.gitbook.io/doc/public-key_cryptography/public-key_signatures#constants
https://libsodium.gitbook.io/doc/secret-key_cryptography/secret-key_authentication#constants
https://libsodium.gitbook.io/doc/advanced/scalar_multiplication#constants
2020-03-22 13:45:05 -07:00
Tomasz Pluskiewicz eb97afe7a5 fix: using addIn/addOut methods should return single context (#43295) 2020-03-22 13:43:59 -07:00
Eric Liu 5ea99d7103 feat(types): upgrade carbon__icons-react to 10.9.2 (#43298)
* feat(types): upgrade carbon__icons-react types to 10.9.2

* fix(types): remove patch versions in carbon__icons-react
2020-03-22 13:42:52 -07:00
Abraham WilliamsandSebastian Silbermann 8dd4869771 [@testing-library/dom] update to v7 (#43102)
Update types/testing-library__dom/wait-for-element-to-be-removed.d.ts

Co-Authored-By: Sebastian Silbermann <silbermann.sebastian@gmail.com>

Update pretty-format
2020-03-22 13:44:46 -04:00
Eric Liu be2d773f49 feat(types): upgrade carbon__pictograms-react types to 10.9.1 (#43306) 2020-03-22 09:39:26 -04:00
ZaneHannanAUandZane Hannan 4ca6e984c0 Remove myself from notifications (#43309)
This commit removes myself from being notified of changes, as I am no
longer a noteworthy contributor to this project.

I thank you for your time, and am likely to join you again in the
future.

-- Zane.

Co-authored-by: Zane Hannan <ZaneHannanAU@gmail.com>
2020-03-22 09:02:12 -04:00
Hikiko ee646ad6a1 [final-form-set-field-touched] add types (#43261) 2020-03-20 23:08:43 -07:00
Elizabeth Samuel 6c625a1f0e [office-js-preview] (Outlook) Clean up preview tags (#43277) 2020-03-20 14:47:47 -07:00
Rick-Kirkham a3903ecc90 office-js-preview add DialogParentMessageReceivedEventArgs (#43271)
* add DialogParentMessageReceivedEventArgs

* review changes

* review changes
2020-03-20 13:46:32 -07:00
Nathan Shively-Sanders a94ee28b62 d3-selection: Disable tslint error on TS 3.9 (#43269)
DOM updates in 3.9 mean that Typescript now knows that
`HTMLBodyElement.ownerDocument` can't actually be null. Previously, a
non-null assertion was needed.

Because the tests have to compile on 3.9 AND older versions, I just
disabled the rule.
2020-03-20 11:53:58 -07:00
Piotr Błażejewicz (Peter Blazejewicz) 551f768a3f update(rimraf): update to version 3.0 (#43188)
- v2 created
- removed BUSYTRIES_MAX and EMFILE_MAX
- other minor changes

https://github.com/isaacs/rimraf/blob/master/rimraf.js

Thanks!
2020-03-20 14:02:50 -04:00
Piotr Błażejewicz (Peter Blazejewicz) d3c19af135 feat(find-exec): new definition file (#43186)
- definition file for v1.0
- tests

https://github.com/shime/find-exec#find-exec

Thanks!
2020-03-20 14:01:29 -04:00
Piotr Błażejewicz (Peter Blazejewicz) 2d3a320fd5 feat(exit): update definition with option parameter (#43099)
- `streams` optional parameter
- minor updates

https://github.com/cowboy/node-exit#exit-

Thanks!
2020-03-20 13:58:20 -04:00
Spencerandspalger a99eed1745 [estree] update with latest spec changes (#43103)
* [estree] support async for-of

See https://github.com/estree/estree/blob/master/es2018.md#statements

* [estree] support spread properties

See https://github.com/estree/estree/blob/master/es2018.md#expressions

* [estree] support rest property patterns

See https://github.com/estree/estree/blob/master/es2018.md#patterns

* [estree] add support for ImportExpression

See https://github.com/estree/estree/blob/master/es2020.md#importexpression

* [es2020] add support for BigInt literals

See https://github.com/estree/estree/blob/master/es2020.md#bigintliteral

* Revert "[es2020] add support for BigInt literals"

This reverts commit 47134accb91cf73307d434f57acf97bc0328f39e. Supporting bigint would require TS 3.2 which requires dependency changes that can probably wait? 🤷‍♂️

* [estree] add new expression type to Union

* narrow express node by ImportExpression

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-03-20 13:57:41 -04:00
Karol Maciaszek 541905dc80 postman-collection: urldef.path and url.path made optional (#42833) 2020-03-20 13:56:25 -04:00
Eloy Durán 67fdf14c90 [react] Port ElementRef utility type from Flow (#43201)
* [react] Port ElementRef utility type from Flow

https://flow.org/en/docs/react/types/#toc-react-elementref

* [react] Use least amount of required typing

* [react] Support forwarded refs with ElementRef

* [react] Use correct function component return type

* [react] Add ElementRef test for memoized ref forwarding component

* [react] Add ElementRef test for lazy component

* [react] Match function components with props

* [react] Fix test-case by moving type around

* [react] Fix flaky test-case

* [recharts] Remove deprecated CSS properties

These have been removed from `lib.dom.d.ts`:
https://github.com/microsoft/TypeScript/pull/37464/files#r395692943
2020-03-20 13:44:04 -04:00
Sleeyax 1b0bb5a241 [stremio-addon-sdk] Add types for stremio-addon-sdk (#43190)
* [stremio-addon-sdk] Add types for stremio-addon-sdk

* [stremio-addon-sdk] use global reference package

* [stremio-addon-sdk] disable no-self-import rule

* [stremio-addon-sdk] disable no-redundant-jsdoc-2 rule
2020-03-20 12:06:56 -04:00
Michaël De Boey 404b0cb92a [ot] Add ot types (#43211) 2020-03-20 12:04:00 -04:00
Piotr Błażejewicz (Peter Blazejewicz) 851156006a feat(merge-img): new type definition v2.1 (#43124)
- definition type file
- tests

Used in BacktopJS tool:
https://github.com/preco21/merge-img#readme

Depends on:
microsoft/types-publisher#754

Thanks!
2020-03-20 12:03:07 -04:00
Piotr Błażejewicz (Peter Blazejewicz) 12712d99e6 feat(@open-wc/testing-karma-bs): new type definition (#43216)
- type definition
- tests

https://github.com/open-wc/open-wc/tree/master/packages/testing-karma-bs

Thanks!
2020-03-20 11:56:30 -04:00
Dave Brudner 6a4b60bef8 Component emitter event (#43125)
* component-emitter: adding Event generic

* component-emitter: adding tests for Event generic
2020-03-20 11:55:48 -04:00
Lars Klein 490cf94683 adding declarations for wink-pos-tagger (#43229)
* adding missing addRegex method to type definitions

* formatting

* formatting

* removing trailing whitespace

* adding definitions for wink-pos-tagger

* adding author information

* const instead of var in tests

* removing trailing whitespace

* formatting

* formatting
2020-03-20 11:54:12 -04:00
Arvin Singla 876117fb54 [pino-http] Adding autoLoggingOptions introduced in pino-http 4.4.0 (#43137)
* Adding autoLoggingOptions as optional type for autoLogging config.

* Updating version number to 4.4 to match current release of pino-http
2020-03-20 11:53:11 -04:00
Piotr Błażejewicz (Peter Blazejewicz) fdea88dc12 feat(offscreen-canvas): new type definitiion (#43246)
- definition files
- tests

https://github.com/ai/offscreen-canvas

Thanks!
2020-03-20 11:52:06 -04:00
Vladyslav Kochetkov 3c7ab7eb39 React-Native-WebRTC update getUserMedia (#43146)
When I was developing I noticed the getUserMedia was returning a promise and this was not documented in ts.

Please fill in this template.

[x] Use a meaningful title for the pull request. Include the name of the package modified.
[x] Test the change in your own code. (Compile and run.)
[ ] Add or edit tests to reflect the change. (Run with npm test.)
[ ] Follow the advice from the readme.
[x] Avoid common mistakes.
[ ] Run npm run lint package-name (or tsc if no tslint.json is present).

Select one of these and delete the others:

If changing an existing definition:
 [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <>
 [ ] If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header.
 [ ] If you are making substantial changes, consider adding a tslint.json containing { "extends": "dtslint/dt.json" }. If for reason the any rule need to be disabled, disable it for that line using // tslint:disable-next-line [ruleName] and not for whole package so that the need for disabling can be reviewed.
2020-03-20 11:51:38 -04:00
David Recuenco 565c410e2d update ldapjs EqualityFilter to allow Buffer values (#43150) 2020-03-20 11:51:08 -04:00
Radosław Miernik 72cbb29562 Improved meteor/mongo typings. (#42998)
* Improved meteor/mongo typings.

* Reverted changes from meteor/globals.
2020-03-20 11:49:10 -04:00
Nicholas Zacca 8165882633 [Simplebar] Allow typings to work with strictNullChecks enabled (#43123) 2020-03-20 11:48:47 -04:00
Will NguyenandTrung Nguyen 4b580a2061 feat(jscodeshift): update to v0.7 (#43107)
- defineTest with testOptions

https://github.com/facebook/jscodeshift/releases/tag/v0.7.0

https://github.com/facebook/jscodeshift/compare/v0.7.0..v0.6.4

Co-authored-by: Trung Nguyen <trungn@axon.com>
2020-03-20 11:45:38 -04:00
kygoh a130517e8f [@types/leaflet] L.Util.bind() causes Argument of type '(done: L.DoneCallback, tile: HTMLElement) => void' is not assignable to parameter of type '() => void' (#43116)
* modified L.Util.bind definition

* made available protected methods used in TileLayer.createTile()
2020-03-20 11:45:14 -04:00
Jany 7da23b1815 [mongoose] added ModelOptions to deleteMany (#43006)
* [mongoose] added ModelOptions to deleteMany

* fixed comment indentation

* Update index.d.ts
2020-03-20 11:44:33 -04:00
Chris Krycho 4816fffd2a ember-data: fix default value of for Snapshot<K> (#43206)
The previous type for `Snapshot<K>` defaulted `K` to `any`, but with a
type constraint for `K` that often resolves to `never`: any time the
`ModelRegistry` has no entries. `any` is not assignable to `never`, so
this always produces a type error with an empty registry.

In general, users have gotten past this by either adding a model to the
registry, if they are using Ember Data, or by removing the Ember Data
types if they are *not* using Ember Data. Both eliminate the type error! However, the
type is strictly *wrong*, and not just in a theoretical sense: it can
and *will* break users who have an Ember addon or app which uses Ember
Data in a composite TS project, because [TS resolves *all* `@types`][1]
unless overridden. For the sub-projects which do not have any entry in
the registry, they get the expected type error: "'any' does not satisfy
the constraint 'never'".

The appropriate default for `K` here is just `keyof ModelRegistry`: this
resolves to `never` when `ModelRegistry` is empty, or the keys of the
registry otherwise, which achieves the goal of users never having to
specify the key manually. The generic becomes effectively an invisible
implementation detail, as it should be.

[1]: https://www.typescriptlang.org/v2/en/tsconfig#types
2020-03-20 11:44:06 -04:00
Ed Courtney fe36d9b6f4 Updated ParseOptions with forceStream option (#43120) 2020-03-20 11:43:09 -04:00
Arlo c0c525d551 [jsforce] Added missing type overload (#43086)
* Added missing type overload

* Added missing types to PartialOAuth2Options

* Revert "Added missing types to PartialOAuth2Options"

This reverts commit 7e02bfa4fa53fbe3940284cd571bb7248a912885.
2020-03-20 11:41:44 -04:00
Dan FieldsandDaniel Fields 345206705f Added useDayzed hook (#43189)
Co-authored-by: Daniel Fields <dfields@coolfiresolutions.com>
2020-03-20 11:40:53 -04:00
Rifa'i M. Hanif 8454d61ba0 [@types/ol] Update to OpenLayers v6.2.1 (#43221) 2020-03-20 11:38:49 -04:00
Anton Kudinov 00d193f1a0 [swagger-ui-express] fix swagger options key (#43214) 2020-03-20 11:37:43 -04:00
Ali Taheri Moghaddar 1754e384f4 Fix localAddress type (#43227)
localAddress is not a boolean, it's a string as even stated in it's description.
2020-03-20 11:37:12 -04:00
Lars Klein 9758f5b2e6 adding missing addRegex method to type definitions and extending tests with samples from official API (#43209)
* adding missing addRegex method to type definitions

* formatting

* formatting

* removing trailing whitespace
2020-03-20 11:36:35 -04:00
Samuel Bodin 0a41e82e19 Update index.d.ts (#43233) 2020-03-20 11:35:17 -04:00
Japorized 2161f2afc8 fix: change param type for spiral function in d3-cloud (#43226)
* chore: format d3-cloud definitions and tests

* fix: change param type for spiral function in d3-cloud

Reference https://github.com/jasondavies/d3-cloud#spiral

* fix: annotate an unused function param in d3-cloud test
2020-03-20 11:35:03 -04:00
Rikkert Koppes 18a399b465 Make graph generic (#43160)
* Make graph generic

* change Node<T>[] to Array<Node<T>>

* fix missing semicolon

* fix missing whitespace
2020-03-20 11:31:53 -04:00
Daiki Ihara a19b27a0a8 [@types/webpack] Add chunkGroups for ToJsonOptionsObject (#43239)
* [@types/webpack] add chunkGroups for ToJsonOptionsObject

* [@types/webpack] add test for chunkGroups
2020-03-20 11:25:02 -04:00
Stuart 07c6fa8c77 Add DeviceRequests (#43238) 2020-03-20 11:24:39 -04:00
Puneet AroraandPuneet Arora 852e60e874 [request-promise]: Adding generics to request promise API (#43244)
* request-promise-apu-generics: Adding generics to request promise API

* request-promise-apu-generics: adding a default generic of type any

Co-authored-by: Puneet Arora <parora@atlassian.com>
2020-03-20 11:22:42 -04:00
LeoCantThinkOfAName 70ed36a3e4 Reflect useThemeUI api from theme-ui docs (#43135)
* reflect useThemUI return types from official doc

* add simple test case for useThemeUI

* match theme-ui npm version

* match theme-ui npm version

* specify ts version

* remove optional chaining

* specify ts version
2020-03-20 11:21:48 -04:00
Oliver Jackman e223e44833 Fix @reach/router .useMatch types. Path params are added to the return object. (#43248) 2020-03-20 11:20:37 -04:00
Richie Bendall ff8cb219da chore: Bump universalify version (#43252)
* chore: Bump universalify version

* chore: Fix version
2020-03-20 11:19:52 -04:00
Bryan HuangandJan Liska 05ddf70dfa Add missing members and properties (#43258)
* Upgrade to Viewer v7.2

Release notes: https://forge.autodesk.com/blog/viewer-release-notes-v-72

* Upgrade to Viewer v7.4

Release notes: https://forge.autodesk.com/blog/viewer-release-notes-v-74

* Added getDefaultGeometry method

* Added missing methods to Navigation class:
- getWorldPoint
- screenToViewport

* Added missing method to Viewer3DImpl class:
- viewportToRay

* getDocumentNode returns any rather than object

* added interface to specify API endpoint

* move properties to top of the class

Co-authored-by: Jan Liska <jan.liska@autodesk.com>
2020-03-20 11:15:35 -04:00