Commit Graph

67406 Commits

Author SHA1 Message Date
Felix Hessenberger
8d64d8cd4e
[@types/react-big-calendar] Add dayLayoutAlgorithm property added in https://github.com/jquense/react-big-calendar/pull/1473 , add slotGroupPropGetter added in https://github.com/jquense/react-big-calendar/pull/1510 , constrain Culture type to string instead of string | string[] (#42388) 2020-02-20 10:30:09 -08:00
Jan Potoms
4fccaa038e
Add missing return types for babel__traverse unshiftContainer and replaceWithMultiple (#42407)
* Add missing return types

* try this

* Fix test

* babel core depends on babel traverse

* increase ts version on plugin-macros

* this should be the last one depending on babel/traverse

* try a rerun

* trigger a rerun
2020-02-20 10:25:41 -08:00
Remco Haszing
007b40797f
Fix return type of serviceworker-webpack-plugin register() (#42513)
It has an inconsistent API. It returns false if `navigator.serviceWorker` is undefined.

TSdoc was added to clarify this quirk.
2020-02-20 10:16:45 -08:00
Ryan Fahsel
f56a1c3594
Add types for object-mapper (#42495) 2020-02-19 17:31:20 -08:00
ExE Boss
75ad8d682d
feat: Add types for mocha‑sugar‑free (#42469)
* feat: Add types for `mocha‑sugar‑free`

* fix(mocha‑sugar‑free): Fix TSLint failures

* fix(mocha‑sugar‑free): Fix TSLint failures
2020-02-19 16:54:30 -08:00
Piotr Błażejewicz (Peter Blazejewicz)
e58808feaf
feat(karma-mocha-reporter): definition for v2.2 (#42382)
- definition for Mocha reporter for Karma
- tests

Thanks!
2020-02-19 16:47:12 -08:00
Robert Gabriel Nisipeanu
6577100e95
['react-swipeable-views-utils'] Add missing 'virtualized' and 'bindKeyboard' functions (#42336)
* Added missing 'virtualized' and 'bindKeyboard' functions for react-swipeable-views-utils

* Revert "Added missing 'virtualized' and 'bindKeyboard' functions for react-swipeable-views-utils"

This reverts commit a04ff4db27a444480d78d34fe2434231fc6dc066.

* Added missing 'virtualized' and 'bindKeyboard' functions for react-swipeable-views-utils-tests

* Added children prop for `virtualize`

* Fixed `Bind element 'number' has an 'any' type` error

* Fixed `file should end with a newline` error
2020-02-19 16:44:20 -08:00
Emily Marigold Klassen
635830083d
Add promise-inflight types (#42442) 2020-02-19 16:41:15 -08:00
Sebastian Silbermann
f36700cc10
fix(react): forwardRef accepts a special rendering function (#42398)
* test(react): Add failing test for defaultProps/propTypes and forwardRef

* fix(react): forwardRef accepts a special rendering function

* fix(react): deprecate over breaking change

* chore(react): diff hygiene

* chore(react): rendering function -> render function

* feat(react): Actually reject propTyps/defaultProps in forwardRef

* chore(react): explain `never` types in RenderFunction
2020-02-19 16:16:46 -08:00
Piotr Błażejewicz (Peter Blazejewicz)
ca9d84b08b
feat(karma-chrome-launcher): type definition for v3.1 (#42383)
- type definition
- tests

Thanks!
2020-02-19 16:15:24 -08:00
Ryan Dowling
4677923ae0
fix(styled-system__css): zIndex not being handled from theme as a string (#42326) 2020-02-19 15:56:49 -08:00
Aram Elchyan
da50bddaa2
requestretry: delayStrategy property added to RequestRetryOptions. (#42300) 2020-02-19 15:53:34 -08:00
Piotr Błażejewicz (Peter Blazejewicz)
0498177e3d
feat(express-rate-limit): upgrade to v5, remodel definition (#42321)
- update api to be aligned with v5
- create v3 backward compatible version
- corrects problems with the definition to cover expecation from:
nfriendly/express-rate-limit#138
- rewrite tests compared to v3 to cover syntax used by the project
readme

Thansk!
2020-02-19 15:51:31 -08:00
Luis Felipe Zaguini
94e71fe291
[javascript-time-ago] Fix types (#42269)
* Fix javascript-time-ago types

* Enhanced types

* Fix types

* Fix files entries

* Fix files entries

* Fix files entries

* Fix files entries

* Fix files entries

* Fix files entries

* Fix files entries
2020-02-19 15:33:48 -08:00
Avery Fay
955e667056
add types for hapi-server-session (#42403) 2020-02-19 15:09:26 -08:00
Piotr Błażejewicz (Peter Blazejewicz)
230fd5eec4
feat(find-unused-sass-variables): type definitions for v1.0 (#42491)
- definition file
- tests

https://github.com/XhmikosR/find-unused-sass-variables#api

Thanks!
2020-02-19 14:50:00 -08:00
Keith Kirton
e5c3b4deec
Support Gremlin DSL definitions (#42450)
- Base classes `GraphTraversalSource` and `GraphTraversal`steps return `this`
in order to not lose the extensions added by derived DSL classes.
- Generic type `T` is used by `GraphTraversalSource`, and `Statics`
to specificy their steps `GraphTraversal` return type. Defaults to `GraphTraversal`.
- Generic type `S` is used by `AnonymousTraversalSource`, to specify the
underlying `GraphTraversalSource` type. Defaults to `GraphTraversalSource`.

Add DSL tests

Add definitions for `elementMap`
2020-02-19 14:33:07 -08:00
Brian Wilson
c16059e932
Match chrome.tabCapture.CaptureOptions with IDL definition (#42378)
In both the documentation and the IDL for tabCapture chrome uses
the confusing name `MediaStreamConstraint` which is not similar to
the actual `MediaStreamConstraints` browser type.  In the IDL the
documentation claims (incorrectly) that it's MediaTrackConstraints,
but there are additional undocumented supported fields so the type
ends up as `object`:

See:

b79156a434/chrome/common/extensions/api/tab_capture.idl (27)
2020-02-19 14:30:10 -08:00
Rory McGuinness
cf5daa1ab0
Type CARDS as Deck (#42492) 2020-02-19 14:27:19 -08:00
Phil Gibbins
008f0f22da
Change koa-ejs ctx.render properties type to 'any' to allow for nested objects and other types than 'string' (#42342) 2020-02-19 12:58:58 -08:00
Connor Peet
98c1a4b208
add types for kap plugins (#42416)
* add types for kap plugins

* add support for new oauth functionality

* fixup! pr comments

* fixup! pr comments

* Update types/kap-plugin/index.d.ts

Co-Authored-By: Sindre Sorhus <sindresorhus@gmail.com>

* rebuild

Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2020-02-19 12:13:24 -08:00
Gaelan
9cf554891c
Add types for serverless-jest-plugin. (#42412)
* Add types for lambda-wrapper.

* Add types for serverless-jest-plugin.
2020-02-19 11:58:07 -08:00
Gaelan
4104952eb9
Add types for lambda-wrapper. (#42408) 2020-02-19 11:53:29 -08:00
F.P
8d98dc86af
proxy-from-env: Add missing URL type for input parameter (#42447)
* Add missing type for input parameter

Allow `URL` objects as parameter (see https://github.com/Rob--W/proxy-from-env/blob/master/index.js#L24 )

* Update types and tests

* Add missing reference type
2020-02-19 11:20:34 -08:00
Piotr Błażejewicz (Peter Blazejewicz)
039151ba67
fix(ejs): add missing options property (#42422)
* fix(ejs): add missing options property

- `outputFunctionName` configuration option
- test updated

Thanks!

* Update types/ejs/index.d.ts

Resolve PR comments

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

* Update types/ejs/index.d.ts

Resolve PR comments

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

* Update types/ejs/index.d.ts

Resolve PR comments

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

* Update authors as per PR comment

Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
2020-02-19 11:19:11 -08:00
Gareth Jones
21df3e7084
feat(jest): add SpiedFunction type (#42460) 2020-02-19 11:15:56 -08:00
ExE Boss
70956465ac
feat(node): Add support for symbol-based CustomPromisify (#42154)
* feat(node): Add support for symbol-based `CustomPromisify`

* test(node): Add tests for symbol‑based `CustomPromisify`

* test(node): Fix `doSomething`’s `onSuccessCallback` defintion
2020-02-19 11:13:44 -08:00
ExE Boss
a12905bdef
feat(node): Fix vm.compileFunction(…) type (#42414) 2020-02-19 11:12:35 -08:00
Pedro Mutter
a16dcfb8da
Removed types for @catho/quantum:3.9.0^ (#42465)
* simplecrawler modules type definition

* required fixes in export

* adjustments reference types of crawler.d.ts

* added catho__quantum types definitions

* Fix lint errors

* Fix lint errors

* Fix lint errors

* fix components event handlers types

* fix lint complains

* fix few missing attributes

* del(Catho/Quantum): remove Catho Quantum types

* del(Catho/Quantum): remove Catho Quantum types

* fix notNeededPackages.json

* fix notNeededPackages.json
2020-02-19 11:06:34 -08:00
wengkhing
ecd6fb8f3c
[aws-lambda] Split APIGatewayEventIdentity type (#42448) 2020-02-19 11:00:55 -08:00
Mohamed Shaban
6c59e79d0c
Add android app state events "blur", "focus" (#42423)
* fix: add android app state events

* trigger ci

* remove trailing space
2020-02-19 14:46:20 +01:00
Ifiok Jr
9306d15154
feat: upgrade cli-spinner version (#42228) 2020-02-18 16:16:52 -08:00
Nick Krichevsky
71171f48b5
Add type declaration for gl-fbo (#42394) 2020-02-18 16:09:43 -08:00
Piotr Błażejewicz (Peter Blazejewicz)
308f467a17
feat(alex): type definitions for alex v8.1 (#42461)
- type definitions
- tests

https://alexjs.com/
https://github.com/get-alex/alex#readme

Thanks!
2020-02-18 15:17:53 -08:00
Simon Buchan
b9b6b0e9bd
[aws-lambda] Fixes a couple of typos I made noticed by @apepper (#42437)
See original PR #42080
2020-02-18 14:29:42 -08:00
coyoteecd
42b2f4a5f7
[jasmine] Add typings for resolveTo() and rejectWith() introduced in jasmine 3.5 (#42374)
See:
- https://jasmine.github.io/api/3.5/SpyStrategy.html
- https://github.com/jasmine/jasmine/pull/1688
- https://github.com/jasmine/jasmine/issues/1715
2020-02-18 14:27:42 -08:00
Karl Horky
e73517f0d5
@types/passport-auth0: Add default export to type definition (#42315)
* Add default export to type definition

* Add my name

* Update test

* Commit to prevent bot from auto-closing

* Try other export format

* Add declare

* Change back to export

* Try `export default`

* Add module

* Remove module again

* Fix imports

* Upgrade imports

* Revert imports

* Revert imports

* Try using default instead

* Revert test

Cannot test for a default import

Ref: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/41948#issuecomment-585441968

* Try wrapping in namespace

* Fix or disable linting errors

* Try with different namespace merging

* Fix interface access
2020-02-18 14:17:03 -08:00
onichandame
42bb035f82
yup SchemaDescription test params (#42400)
* yup SchemaDescription

* updated yup test

* updated yup SchemaDescription

* added yup object fields types

* changed test for readability

* semicolon missing
2020-02-18 13:27:21 -08:00
Ryan Willpower
73e39b2a83
feat(node, perf_hooks): add entryType to all types and interfaces that use it (#42428)
* feat: add entry type

Accorded to document https://nodejs.org/api/perf_hooks.html\#perf_hooks_performanceentry_entrytype entry should have its own type, not a string type.

* chore: add contributer name

* feat(node): add entry type
2020-02-18 12:49:52 -08:00
Alan Plum
31ca8b6c52
ArangoDB: Remove import of graphql (#42430)
* Remove import of graphql

* Oops

* Oh come on
2020-02-18 11:43:13 -08:00
Simcha Wood
c31a127798
[hapi__joi] Fix parameter type used in type def for ValidationErrorFunction (#42357)
* Fix ValidationErrorFunction parameter type

* Fix ValidationErrorFunction parameter type

* Fix ValidationOptions and ErrorReport types for use in error reporting

* Fix prefs type in ErrorReport

* Limit LanguageMessageTemplate interface to publicly consumed props

* Add test for ValidationErrorFunction

* Fix formatting
2020-02-18 11:41:29 -08:00
Bert Verhelst
b745d938a4
Fix return types for filter funcs without callback (#42185)
* Fix return types for filter funcs without callback

according to the docs, you can omit the callback. In this case the function will return a promise containing the filtered array.

http://caolan.github.io/async/v3/docs.html#filter

* [async] callback is obligated when no promise is returned
2020-02-18 11:33:24 -08:00
Peter Xu
f3c401b8d2
fix(sharedb): correct sharedb.DB.getOps so it has nullable arguments (#42331)
* Update typings: getOps can have null from or to

The docs for ShareDB clearly state that `from` and `to` arguments in `getOps` are nullable:

> - `from` number: the first op version to fetch. If set to null, then ops will be fetched from the earliest version
> - `to` number: The last op version. This version will not be fetched (ie to is non-inclusive). If set to null, then ops will be fetched up to the latest version

* Add tests and name "Definitions by"

Co-authored-by: petertravelchime <54869620+petertravelchime@users.noreply.github.com>
2020-02-18 11:02:45 -08:00
Omar Diab
758c013883
pass extraParams in callback with request (#42241) 2020-02-18 11:00:24 -08:00
Harry Goode
66613d5aca
Feature/react d3 graph (#42240)
* react-d3-graph types

This is our first time submitting something to this git repo.
This is the type definition for the node module 'react-d3-graph'.

* Test added

* tests fixed

* Update package.json

* Update react-d3-graph-tests.tsx

* Update package.json

* Delete package.json

* Create tslint.json

* Update index.d.ts

* Update react-d3-graph-tests.tsx

* Update package.json

* Update contibutors
2020-02-18 10:56:50 -08:00
Evan Shortiss
256ef16541
fix: move heatmapLibrary for google-map-react to props (#42324) 2020-02-18 10:53:24 -08:00
Michał Grzelak
c935c2b9eb
Add align to MjmlTableProps (#42312)
* add align to MjmlTableProps

* table align type
2020-02-18 10:48:29 -08:00
Yoo.gyoon James Chung
2ef0c19e45
Update type for Options interface in franc package (#42327)
* Update type for Options interface in franc package

As documented here:

https://github.com/wooorm/franc/issues/80

adding this type enables the use of `franc.all` additionally with an `only` languages array when using TypeScript.

Thank you!

* Update index.d.ts

update with recommended simple type declaration
`ERROR: 16:12  array-type  Array type using 'Array<T>' is forbidden for simple types. Use 'T[]' instead.`
2020-02-18 10:37:14 -08:00
jony89
09262345ab
fix: correct type for Ray.getPoint (#42449)
* fix: correct type for Ray.getPoint

`Ray.getPoint` expects a `Ray` and not a `number`

* Update index.d.ts
2020-02-18 10:34:33 -08:00
David Baumgold
c375bc849b
react-map-gl: update to 5.2 (#42433)
* react-map-gl 5.2

* Add ScaleControl component
* Export WebMercatorViewport component from viewport-mercator-project
* Add label props for NavigationControl and GeolocateControl
* Add onGeolocate prop for GeolocateControl

* prettier
2020-02-18 10:33:06 -08:00