Commit Graph

67002 Commits

Author SHA1 Message Date
Curtis Maddalozzo
c4256eccb2 [mongoose]: Add type for validator message function (#41630)
* Add types for almost-equal

* Add strictFunctionTypes to config

* Use number type for comparison args

* Add type for validator message function
2020-01-21 13:35:08 -08:00
Morten Friesgaard
a117bea300 Adds chrome.cast.media.LiveSeekableRange to chrome/chrome-cast and chromecast-caf-sender (#41752)
* Adds LiveSeekableRange

LiveSeekableRange is required when seeking in a live buffer

* add constructor for LiveSeekableRange

* adds liveSeekableRange to RemotePlayer

* adds liveSeekableRange as RemotePlayerEventType
2020-01-21 13:34:08 -08:00
Fabian van der Veen
6f02cfde41 sax: SAXParser.tag is of type Tag (#41763)
d65e3bb504/lib/sax.js (L684)
2020-01-21 13:33:17 -08:00
Johan Fagerberg
d01dbee933 [rehype-react] Add Fragment option, update which options are optional (#41600)
* [rehype-react] Add Fragment option

Usually this will be `React.Fragment`, but it accepts any component.

* [rehype-react] Update which options are optional

Most options have healthy defaults. Only `createElement` is required.

* [rehype-react] Update version number

* [rehype-react] Update tests to include Fragment option
2020-01-21 13:14:03 -08:00
David Stephens
4331db7e1c express-serve-static-core-tests: Update req.is to match the actual function in express (#41636)
* Update `req.is` to match the actual function.

The parameters can be a string or an array and return type can be null.
This is described in the JSDoc for the function:
e1b45ebd05/lib/request.js (L273)

* Add a couple of extra tests
2020-01-21 13:12:22 -08:00
Esteban Ibarra
30446eb4a4 [@types/victory] Add singleQuadrantDomainPadding type to victory (#41764)
* Add singleQuadrantDomainPadding to victory

* Add correct version and semicolons
2020-01-21 13:09:20 -08:00
Elizabeth Samuel
2b70a19f1a [office-js] [office-js-preview] (Outlook) Move SourceProperty to MailboxEnums (#41768)
* [office-js] [office-js-preview] (Outlook) Remove SourceProperty

* Move SourceProperty to MailboxEnums
2020-01-21 13:08:42 -08:00
James Hill
94d9b425ee kurento-client package definition file (#41126)
* Added initial declaration file for client

* Added missing complex types function

* Added initial module format definition

* Re-factored types to export detailed interfaces

* Fixed linting errors

* Added test file for definitions

* Added tslint comment for default export

* Fixed options incorrectly being required

* Added connect and disconnect methods for endpoints

* Re-named connect argument to sink to match docs

* Added media element interface to extend webrtc endpoint

* Changed media element method to use strict element type

* Added missing close method for main class

* Refactored type structure to match commonjs
2020-01-21 12:04:03 -08:00
Nathan Brown
d247933faa [reactstrap] Update Tooltip and Popover to add RefObject as a target (#41552)
* [reactstrap] Update Popover to add RefObject as a target

* [reactstrap] Add to the test the usages of React.RefObject

* [reactstrap] Update Tooltip, Popover, and Collapse to add RefObject as a target

* [reactstrap] Remove RefObject from Collapse definition
2020-01-21 09:50:16 -08:00
Wojtek Czekalski
be840b6e1d react-native: Add WebSocket ready state constants (#41637)
As defined in the React Native repo.
https://github.com/facebook/react-native/blob/master/Libraries/WebSocket/WebSocket.js#L59-L67
2020-01-21 09:48:59 -08:00
David Ernst
070fa8d410 [react-native]Picker.style expects TextStyle (#41729)
The package itself says it's expecting a `TextStyle`, not a `ViewStyle` (84adc85523/Libraries/Components/Picker/Picker.js (L62)). 

Specifically, setting this to `ViewStyle` causes Typescript to complain if you try to set a `color` property, which does in fact work.
2020-01-21 09:48:13 -08:00
KentarouTakeda
1222cab18e Add types of ChartPoint, ChartData. (#41710) 2020-01-21 09:43:21 -08:00
Kelvin Chu
6e8c5f5b00 [react-native]: add message to WebSocketCloseEvent. (#41731) 2020-01-21 09:35:55 -08:00
Felix Haus
6b15eefb54 [webpack] Add definitions for upcoming release (#41736)
* webpack: Adds definitions for v5 release

* webpack: Move webpack-tests.ts -> test/index.ts
2020-01-21 09:34:44 -08:00
Jack Wearden
96dfce7a5d highland: convert spaces to tabs and add tslint rule (#41717) 2020-01-21 09:30:49 -08:00
AlCalzone
8189cbe230 [iobroker] add definitions for the integrated objects and states cache (#41753) 2020-01-21 09:16:07 -08:00
Oliver Joseph Ash
4fef8e2c33 react: Children fixes (#41760)
* `react`: `Children.map` fixes

https://reactjs.org/docs/react-api.html#reactchildren

* Refine return type

* Apply same changes to `toArray`
2020-01-21 15:13:53 +00:00
John Gozde
903eaaf06d Add @testing-library/jest-dom (#37792)
* Add @testing-library/jest-dom

* Fix global test

* Update jest-dom typings for (future) v5

- Remove module typings
- Sync global typings with latest version

Apply suggestions from code review

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

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2020-01-21 14:42:30 +00:00
Jan Aagaard
4ab4fa9c80 Use union types instead of overloads (#41596)
* Use union types instead of overloads

* Format with Prettier
2020-01-21 04:29:33 -05:00
Stephane Moser
06ed23b54b Add types to library x509.js (#41713)
* Add files for types

* Fix lint issues

* Add tests

* Remove test data
2020-01-21 04:28:26 -05:00
John Simon
d0c3a91328 When act is not async, don't return a Promise-like (#41496) 2020-01-20 19:37:05 -05:00
Zacharias Björngren
7a3aac3ac8 [istanbul-lib-report] Updates watermark types (#41464)
* [istanbul-lib-report] Updates watermark types

* [istanbul-lib-report] Updates types to 3.0.0
2020-01-20 19:36:32 -05:00
Opportunity
72942510c3 add register to source-map-support (#41461) 2020-01-20 19:35:53 -05:00
Bert Verhelst
1d9a6c157a [async] update times functions to support promise (#41435)
* [async] update times functions to support promise

* [async] correctly add return type for times func
2020-01-20 19:34:51 -05:00
Carl Egbert
e817b08dd4 @types/through: Add missing queue method to through.ThroughStream (#41427)
* Add queue method to through.ThroughStream

* no encoding arg

* formatting

* update tsconfig
2020-01-20 19:33:20 -05:00
Keven Leone
b8a774d584 add types for bull-board (#41719)
* add types for bull-board

* version bull-board definition
2020-01-20 19:08:01 -05:00
Waseem Dahman
0e6efc8134 [global-npm] Add types for global-npm (#41705)
* add types for global-npm

* remove reference import
2020-01-20 18:59:45 -05:00
John Hou
c16fefbe65 Add typings for the package 'koa-cookie' (#41714)
* Add typings for the package koa-cookie

* format with 4 spaces
2020-01-20 18:56:23 -05:00
Dmitrii
6177b2e997 add types knex-db-manager (#41716) 2020-01-20 18:54:35 -05:00
Jamie Magee
78c13f520c Add types for semver-utils (#41734) 2020-01-20 18:52:31 -05:00
Ranjit Singh
b5a1267b5e [mongoose-autopopulate] added new type definitions (#41743) 2020-01-20 18:50:40 -05:00
Richard Haddad
2b3ef8b232 add bresenham types (#41741) 2020-01-20 18:49:32 -05:00
Michaël De Boey
e47d9d3d92 [algoliasearch/lite] Update getObject types (#41703)
* Update getObject types

* Update links
2020-01-20 15:43:48 -05:00
David Sommerich
2e3ed02258 aws-lambda: Make ALBResult.body optional (#41700) 2020-01-20 15:41:55 -05:00
AlexReff
0a88aa1d56 [swiper] Add missing controller property to options (#41629)
* Add missing controller property to options

The definition is wrong, needs this added.

* Added boolean type to controller option definition
2020-01-20 15:39:07 -05:00
Maxi Cilauro
a18b03e2f9 Update react-tag-autocomplete definitions to 5.12 (#41684) 2020-01-20 15:37:57 -05:00
omjadas
b529159e4f update types for Field and Fields (#41727) 2020-01-20 15:36:08 -05:00
Kamil Socha
0ead4f1326 Update json-form-data definitions (#41578) 2020-01-20 15:35:09 -05:00
Alex Hayton
2f807f45fb Added return type to currentUser.subscribeToRoomMultipart (#41708) 2020-01-20 15:32:47 -05:00
Ali Akbar Azizi
37f3bf828e Add dark mode prop (#41726)
Add dark mode prop
2020-01-20 15:30:55 -05:00
Natalie Marleny
ddd2e913f6 [@types/fabric] Update types/fabric from fabric v3.5.0 to v3.6 (#41724)
* [fabric] Upgrade the types from fabric v3.5.0 to v3.6.1 (1)

- Add targets property to ICanvasOptions interface

* [fabric] Upgrade the types from fabric v3.5.0 to v3.6.1 (2)

- Update subTargetCheck JSDoc description

* [fabric] Update Definitions by list
2020-01-20 15:30:15 -05:00
Simon Gellis
92ddb1b2b2 Improve types of highland filter and toPromise (#41646)
* Make .toPromise return an instance of the type passed in

* Make filter respect type guards

* Fix toPromise tests for old typescript versions

* Add another test for highland filter
2020-01-20 15:28:41 -05:00
Nasreddine Bac Ali
84f7c15e43 Node os utils 1.2: update types (#41738)
* node-os-utils 1.0: Add types

* apply library file layout

* fix lint errors

* node-os-utils 1.1: Add types

* node-os-utils 1.2: Add types
2020-01-20 15:19:19 -05:00
Kyle Tsang
d459d36f4e [reactstrap] Update typings to 8.4 (#41697) 2020-01-17 20:38:09 -05:00
Piotr Błażejewicz (Peter Blazejewicz)
a82a5256c9 fix(victory): refine innerRadius definition. Closes #41685 (#41689)
- VictoryPie.innerRadius
https://formidable.com/open-source/victory/docs/victory-pie#innerradius

/cc @mikecsmith

Thanks!
2020-01-17 20:01:51 -05:00
tianlinle
6db567744c cursor of scan can be a string (#41556) 2020-01-17 19:18:44 -05:00
Charles Gagnon
0716b93bc9 [azdata] Add definitions for Azure Data Studio Extension API (#41632)
* Initial commit

* Remove unneeded rule overrides

* Update owner URL

* Use user URLs instead of repo URL

* Undo line length changes
2020-01-17 19:05:51 -05:00
Michael Haglund
c3ca7ec691 react-imgix: support data attributes as htmlAttributes (#41696) 2020-01-17 18:35:23 -05:00
Robby Helms
73ed5e28da [parse] Add overload for Parse.Cloud.define (#41695) 2020-01-17 17:59:37 -05:00
Richard Collette
272fd18a51 [@types/leaflet] add attributionControl property to Map class (#41690)
* [@types/leaflet] add attributionControl property to Map class

* [@types/leaflet] unit tests for Map attributionControl property

* fix spelling
2020-01-17 15:26:43 -05:00