Commit Graph
67972 Commits
Author SHA1 Message Date
coyoteecd cda398260e Allow other expected values to be nested in jasmine.objectContaining for TypeScript 3.1+ (#43204)
* [jasmine] Fix unit tests for jasmine.objectContaining to use $ExpectError instead of commments

* [jasmine] Fix type definitions for jasmine.objectContaining when using TypeScript 3.1+
2020-03-23 11:31:47 -04:00
Haroen Viaene 4c9daf7346 [react-instantsearch] update to v6 (#43111)
* [react-instantsearch] update to v6

- createIndex & createInstantSearch no longer exist, replaced by the component in -core
- InstantSearch no longer accepts appId & apiKey
- InstantSearch no longer accepts `root` (& neither Index, but that wasn't typed)
- /server API has changed, now exposes directly `findResultsState`

* fix small typo things

* update native tests

* declare newer stuff

* prevent error

* interfaces are required apparently

* Update types/react-instantsearch-core/index.d.ts

* Update types/react-instantsearch-dom/index.d.ts

* fix lint?

* remove failing test

* hmm

* hmm this test is weird but that's ok

* old typescript
2020-03-23 11:30:33 -04:00
Abhijith Vijayan 7afb65a981 fix: add types to authentication context object & executeQuery for @types/keystonejs__keystone (#43257)
* fix: add types to authentication context for keystone v6.0

* fix: add other fields from authentication context data packet

some fields were undefined. I have added these as optional with any for now.

* fix: pass default values with the optional options for executeQuery()

This permits
```
executeQuery(
        `query {
      _allUsersMeta {
        count
      }
    }`
```

as well as 

```
executeQuery(
        `query {
      _allUsersMeta {
        count
      }
    }`,
	{
    	variables: {
         	password,
         	email,
     	},
	}
```

* fix: remove initializer from interface property

* fix: ci error

`A parameter initializer is only allowed in a function or constructor implementation.`

* fix: i am done with semicolons
2020-03-23 11:29:52 -04:00
Dmitrii Kanatnikov 8ab0898586 add serverSelectionTimeoutMS parameter to mongoDB (#43279) 2020-03-23 11:29:18 -04:00
h_Davy 4d6ef1c04a @types/cesium fix missing parameter for ImageryProvider.loadImage, and add missing defaultValue function (#43173)
* Update index.d.ts

fix: ImageryProvider.loadImage, ImageryProvider.requestImage
add: defaultValue

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts
2020-03-23 11:29:03 -04:00
ExE Boss b567b736e8 fix(jsdom): Fix JSDOM types in JavaScript code (#43315)
* fix(jsdom): Fix JSDOM types in JavaScript code

* fix(jsdom): Fix lint errors
2020-03-23 11:28:22 -04:00
Alexis Rico 155dd3426e [NodeGit] Remote.create is async (#43310)
Reference: https://www.nodegit.org/api/remote/#create
2020-03-23 11:27:49 -04:00
lil.sad 1168acc915 types/auth0: Add rules config types (#43230)
* types/auth0: Add rules config types

* types/auth0: Fix trailing whitespaces
2020-03-23 11:27:29 -04:00
Nathan Shively-Sanders 0ae7aa751a dom-mediacapture-record: remove AudioTrackList (#43270)
AudioTrackList isn't standard, and is removed from the DOM in TS 3.9:
  https://github.com/microsoft/TSJS-lib-generator/pull/802

This PR removes it from dom-mediacapture-record
2020-03-23 08:10:43 -07:00
Michael Rochlin 31dadd46f9 Add typing for children of react-document-title (#43022)
* Add typing for children of react-document-title

react-document-title uses React.Children.only to get the only child, and raises an error if more than one child is passed.

https://github.com/gaearon/react-document-title/blob/master/index.js#L31

* Add a test case with a child

* Turns out it should be React.ReactChild

Turns out it should be React.ReactChild

* Fix typo
2020-03-22 14:28:19 -07:00
Florian Keller 3ac9608f05 [sodium-native] add missing constants (#43296) 2020-03-22 14:27:33 -07:00
Jack Bates d606041521 [swiper] Enable noImplicitThis (#42952) 2020-03-22 14:26:44 -07:00
Jack Bates 22284c8ddd [webmidi] Enable noImplicitThis (#42954) 2020-03-22 14:25:01 -07:00
Jack Bates 8a8bfac7ae [space-pen] Enable noImplicitThis (#42951) 2020-03-22 14:24:44 -07:00
Duy Thanh Nguyen 7e478f62e7 [ramda] rename then to andThen for 0.27 (#43071) 2020-03-22 14:24:06 -07:00
Jack Bates 8164185efc [meteor-roles] Enable noImplicitThis (#42923) 2020-03-22 14:23:10 -07:00
Jack Bates ba5c328059 [meteor] Enable noImplicitThis (#42924) 2020-03-22 14:22:50 -07:00
Jack Bates a3bd5ad5da [multiplexjs] Enable noImplicitThis (#42925) 2020-03-22 14:22:35 -07:00
Jack Bates 689a6abc28 [nedb] Enable noImplicitThis (#42927) 2020-03-22 14:22:11 -07:00
schl3ck 7a9ef27104 [scriptable-ios] Added types for iOS app 'Scriptable' (#43034) 2020-03-22 14:12:19 -07:00
Junxiao Shi 0fbd4beb75 ndjson: initial definition (#43073) 2020-03-22 14:09:23 -07:00
Abhijith Vijayan 043b939aa2 fix #43255: add new fields to @types/keystonejs__adapter-knex for adapter-knex v6.3 (#43256)
* fix #43255: add dropDatabase field to keystonejs__adapter-knex options

* fix: restore dependent typescript version 3.5

* fix: lint errors
2020-03-22 14:08:12 -07:00
Kevin Brownandjonathan-cowling 914615c9ee Add introspection option to @keystone/app-graphql (#43284)
Co-authored-by: jonathan-cowling <cowlingj@users.noreply.github.com>
2020-03-22 14:04:05 -07:00
Piotr Błażejewicz (Peter Blazejewicz) 509981137d feat(luxon): update to 1.22 (#43247)
- missing DateTime factory method
- tests updated
- maintainer added

https://moment.github.io/luxon/docs/class/src/datetime.js~DateTime.html#static-method-invalid
https://github.com/moment/luxon/blob/master/src/datetime.js#L857-L869

Thanks!
2020-03-22 13:56:47 -07:00
Kevin Simper 252d080626 Allow session to be null (#43240)
According to the docs, destroying the session can be done by setting req.session = null

https://github.com/expressjs/cookie-session#destroying-a-session
2020-03-22 13:55:54 -07:00
6ad27673b7 @types/shelljs Fix documentation (#43245)
* @types/shelljs Fix documentation

https://github.com/shelljs/shelljs/blob/a8452b89f2b9dd372da81e973a16074a5628b0b6/src/common.js#L26

* Update types/shelljs/index.d.ts

Co-Authored-By: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>

Co-authored-by: Orta <orta.therox+github@gmail.com>
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
2020-03-22 13:55:04 -07:00
Anton Banchev d3440e39f9 stroke has two methods, parameter is optional (#43260)
fixes an issue mentioned here
https://github.com/iddan/react-native-canvas/issues/164
2020-03-22 13:54:17 -07:00
Hikiko fc61649f49 [element-closest] add types (#43264) 2020-03-22 13:53:02 -07:00
Piotr Błażejewicz (Peter Blazejewicz) 26e018e9e2 feat(prettier): add information about defaults (#43276)
* feat(prettier): add information about defaults

For most commonly used options:
https://prettier.io/docs/en/options.html

Thanks!

* Add missing defaults as per PR comment:

- `proseWrap`
- `useTabs`

Thanks!
2020-03-22 13:50:57 -07:00
David Baumgold b8a3c1dd68 React Map GL: update props for LinearInterpolator (#43313) 2020-03-22 13:48:56 -07:00
Tomasz Pluskiewicz cf0edd580e fix(rdf-fetch): options are optional (#43294)
* feix(rdf-fetch): options are optional

* options are also optional
2020-03-22 13:48:21 -07:00
Piotr Błażejewicz (Peter Blazejewicz) 0e3a2e2cf8 feat(pngjs): update 'this' scope binding in events (#43299)
- modify core events defintiioin to handle 'this' scope
- test updated for non-arrow syntax usage with events scoped to PNG

https://github.com/lukeapage/pngjs#async-api

Thanks!
2020-03-22 13:47:38 -07:00
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