Commit Graph
67919 Commits
Author SHA1 Message Date
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
Alex Kvak fbac47ca01 fix: it should be possible to use latest 0.x knex version (#43254) 2020-03-20 11:13:25 -04:00
Mikael Lirbank 6e9f8d6434 Add 'value' property to Double class (#43003) 2020-03-19 15:16:09 -07:00
Nathan Shively-Sanders 51a2690be4 Fix paths redirect in uuid/v3 tsconfig (#43210)
* Fix paths redirect in uuid/v3 tsconfig

* remove offending tests instead
2020-03-18 16:47:58 -07:00
Piotr Błażejewicz (Peter Blazejewicz) 27123c0744 fix(node): correct offset parameter for writes/reads (#43130)
- makes `offset` parameter optional when it defaults to 0

https://nodejs.org/dist/latest-v13.x/docs/api/globals.html

/cc @fireflysemantics

Closes: #43112
2020-03-18 16:43:50 -04:00
Pavel Prokudin d656d4dbef Fix transform return value (#43134) 2020-03-18 16:43:20 -04:00
Marco Gonzalez 9cdb5d3265 feat(cfn-response) Added noEcho and Promise<void> return type (#43128)
Updated typings to the latest version of cfn-response.
2020-03-18 16:42:54 -04:00
Jesper M. Førisdahl 33673460bf [passport-azure-ad] change 'true' to 'boolean' (#43012)
Interface has the type `true`, should it be `boolean`?
2020-03-18 16:42:13 -04:00
Jens Peters f8fafa79cb cypress-cucumber-preprocessor: Fix defineParameterType definition (#43132)
* cypress-cucumber-preprocessor: Add Transform type definition and use it for defineParameterType definition
2020-03-18 16:41:37 -04:00
Lars Hupel 6243c9ad45 estree: Object expressions may contain spread elements (#43136)
* Object expressions may contain spread elements

* Object patterns may contain rest elements
2020-03-18 16:37:47 -04:00
Martin 0d1e002eed [chart.js] Add ticks to afterBuildTicks function (#43141) 2020-03-18 16:25:30 -04:00
Markus Erlandsson efc6453acf [@types/xrm] add Xrm.Navigation.navigateTo method (#43026)
* add Xrm.Navigation.navigateTo method

* fix linting errors and slight better comments

* Comment errors
2020-03-18 16:24:10 -04:00
Jack Bates 640c0fc048 [redux-immutable] Enable noImplicitThis (#42943) 2020-03-18 16:23:50 -04:00
Ángel Manuel Martín c888b9e91a js-nacl: new method random_bytes (#43142)
* feat(js-nacl): new method random_bytes

* docs(js-nacl): up version number in header
2020-03-18 16:23:27 -04:00
Super Zheng 76bb329370 feat(hashring): add custom hash function type to algorithm (#43161) 2020-03-18 16:23:00 -04:00
WhizSid 4a852d7a7d [react-onsenui] Tabbar render parameters (#43043)
* [react-onsenui] Tabbar render method parameters

* Removed automatically added spaces from formatter

* Fixed linter errors

* Fixed the active status issue
2020-03-18 16:22:28 -04:00
Hugo MullerandHugo Muller 6207e4654e fix types for lucene (#43164)
change Node.termLocation definition

Co-authored-by: Hugo Muller <hmu@reportlinker.com>
2020-03-18 16:20:16 -04:00
Niklas Mollenhauer 4bf2352729 Add types for once/off/removeListener (#43170) 2020-03-18 16:19:17 -04:00
Evan Cloutier ab406a414e [v3.1.0] Update react-native-share type definitions (#43171)
* Update type definition for v3.1.0

* Trigger new build

* Remove patch version; linting
2020-03-18 16:18:05 -04:00
ankhler 4797a7ad97 Add function getAutoLockDelay to chrome.idle (#43175)
* Add function getAutoLockDelay to chrome.idle

* Update description
2020-03-18 16:17:35 -04:00
Samuel Weckström 5df6625b02 @types/recharts: Add className type to <Cell /> (#43178) 2020-03-18 16:17:15 -04:00
Elias García c607aaedbd [yup]: Fix typo in the doc of the abortEarly prop of the ValidateOptions interface (#43193)
* [yup]: Fix typo in the abortEarly prop of the ValidateOptions interface

* [yup]: Add @elias-garcia username to the index.d.ts file
2020-03-18 16:16:39 -04:00