Commit Graph

67928 Commits

Author SHA1 Message Date
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
Spencer
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 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 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 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 Huang
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