Commit Graph
47864 Commits
Author SHA1 Message Date
FUJI GoroandWesley Wigham 9fa7394da1 [@types/jquery] fix: let jQuery's insertAfter / insertBefore accept Node and JQuery<Node> (#27404)
* fix: let jQuery's insertAfter / insertBefore accept JQuery<HTMLElement> as well as HTMLElement

* jquery now requires typescript 2.4

* fix jQuery dts to compile on TypeScript 2.3
2018-07-20 17:56:39 -07:00
daniel-maierandWesley Wigham 37c8afcfa9 Update to vertx3-eventbus-client 3.5 (#27070)
* Update index.d.ts

Update to vertx3-eventbus-client 3.5

* Update index.d.ts

* update to vertx3-eventbus-client 3.5
2018-07-20 17:56:20 -07:00
Adam EisenreichandWesley Wigham 05bf38481e Added more component definitions to video.js (#27163)
* Added more component definitions to video.js

* Update getComponent

This will allow to write `class MyComponent extends videojs.getComponent('Button') { }`.

* addChild correctly returns given component

* typo in ClickableComponent

* Added ControlBar

* Fixing whitespace errors

Fixes ERROR: 26:49  typedef-whitespace

* Update video.js-tests.ts

* Update index.d.ts

* Bump version to 2.1

* Fix tslint errors

* fixup! Bump version to 2.1

* fixup! Fix tslint errors
2018-07-20 17:56:11 -07:00
Miles JohnsonandWesley Wigham d73e42043d [JSS] Export the JSS class declaration (#27428)
* Export the JSS class.

* Fix tests.

* Revert "Fix tests."

This reverts commit 5d2acc01ab583dca20999ecc9d9d04e899066f98.
2018-07-20 17:55:46 -07:00
Lee StandenandWesley Wigham 05d47a553b @types/react-circular-progressbar bump version to match upstream version, as release is needed (#27420)
* version bump to match upstream version

* Fix version number
2018-07-20 17:55:07 -07:00
Scott TrinhandWesley Wigham f5f7c436b9 knex: Allow null value for decimal precision (#27422)
* Allow null value for decimal precision

* Update tests

* Fix weird wording in test comment
2018-07-20 17:54:56 -07:00
Rongjian ZhangandWesley Wigham 62730ac062 classnames: change value of ClassDictionary to any (#27280) 2018-07-20 17:54:28 -07:00
Kamil WaheedandWesley Wigham 08cd3c3b36 Fix incorrectly typed GatewayDest's component prop in react-gateway (#27414)
* Use correct type for GatewayDestProps component

* Test react-gateway GatewayDest component prop type

* Add another test for react-gateway GatewayDest component prop type
2018-07-20 17:53:51 -07:00
Zhu ZijiaandWesley Wigham 7212e9a242 Fix incorrect exports in npmlog (#27396) 2018-07-20 17:52:46 -07:00
nakagawa424andWesley Wigham 435aec3769 cytoscape: fix filtering functions (#27411)
* cytoscape: fix map()

* add tests

* cytoscape: fix filtering functions
2018-07-20 17:51:40 -07:00
Will KosterandWesley Wigham 5d63e04d34 Fix type of mongodb.connect (#27398)
It had never been updated from 2.x. Fixes #23548.
2018-07-20 17:51:22 -07:00
nakagawa424andWesley Wigham f805351bd7 typo (#27409) 2018-07-20 17:50:56 -07:00
Jake RichardsandWesley Wigham 89ac4daab1 Add missing waitFor types (#27331) 2018-07-20 17:50:38 -07:00
Andrew HyndmanandWesley Wigham 6aa9bbdf5c <Sticky> component should expect a function as a child (#27401) 2018-07-20 17:50:26 -07:00
Adam HaglundandWesley Wigham 1d4e623ccb add options to request.auth method (#27373) 2018-07-20 17:50:03 -07:00
Nikolay AlexandrovandWesley Wigham a43c276f2b [mock-knex] Knex could return any type of data (#27390) 2018-07-20 17:47:43 -07:00
S McDowallandWesley Wigham e02291c092 Enhanced return type of Koa Middleware (#27203)
As a Koa Middleware, koa-response-time should indicate it returns a Middleware type not "any" which, in strict TS projects causes warnings.
2018-07-20 17:46:44 -07:00
Mitchell GriceandWesley Wigham 859b3edaa7 Google.Visualization correct column index type (#27383)
Changed `columnIndex` to be a number like all its neighbours
2018-07-20 17:46:28 -07:00
Jiayu LiuandWesley Wigham 165cfcfbbf update weixin-app's request method (#27368) 2018-07-20 17:46:16 -07:00
Michael ZlatkovskyandWesley Wigham 6ae40947bb Update Office.js with latest Excel/Word/Visio/OneNote additions & docs (#27377)
* Update Office.js with latest Excel/Word/Visio/OneNote additions & documentation

* Fix build break
2018-07-20 17:46:08 -07:00
Futa OgawaandWesley Wigham 8cb2a181f3 google-cloud__storage / Update FileMetadata interface (#27172) 2018-07-20 17:44:18 -07:00
Futa OgawaandWesley Wigham 7720980c46 [@types/google-cloud__storage] Fix getSignedUrl() method (#27328)
* Fix required options.

* google-cloud__storage / Fix `getSignedUrl()` test.
2018-07-20 17:44:00 -07:00
Futa OgawaandWesley Wigham 0bb8006e2f [@types/google-cloud__storage] Update WriteStreamOptions interface (#27329)
* google-cloud__storage / Update WriteStreamOptions interface, WriteStreamOptions interface

* google-cloud__storage / Import @types/request's interface `CoreOptions`

* google-cloud__storage / Fix definitions metadata.
2018-07-20 17:43:39 -07:00
Michael FerrisandWesley Wigham 5d9d95a67d yargs: Add scriptName method according to http://yargs.js.org/docs/#api-scriptname0 (#27234) 2018-07-20 17:43:30 -07:00
Daniel CassidyandWesley Wigham 6fefa9cf29 Apply standard lint rules to restify. (#27323) 2018-07-20 17:43:19 -07:00
pau1mandWesley Wigham 32d5aacd14 Fix mistaken required for address in getPastLogs (#27340)
@Levino
2018-07-20 17:43:10 -07:00
BehindTheMathandWesley Wigham c5b489e146 [numeral] Remove method that no longer exists (#27352)
* [numeral] Remove method that no longer exists

This method was removed in adamwdraper/Numeral-js@f8f2696, and it
was changed in adamwdraper/Numeral-js#398 from a dedicated method
to using `$` in the format.

* [numeral] Fix tests
2018-07-20 17:42:56 -07:00
Nemanja MilosavljevicandWesley Wigham 12d470bab7 redux-form - Fix the broken type inheritance (#27256)
* Fix the broken FieldsArray type inheritance

* Fix the broken test and improve upon the implementation
2018-07-20 17:42:44 -07:00
Matt StantonandWesley Wigham 1464f84256 Fix mathjs Unit interface. (#27351)
* Fix mathjs Unit type definitions.

- Remove Unit class methods from the Unit instance interface.
- Add some missing Unit instance methods referenced in the mathjs docs.

One notable problem this resolves is that mathjs types were not
importable in Node without the DOM library due to the Unit.parse
signature referring to DOMStringList.

* Array -> ReadonlyArray in splitUnit() signature.
2018-07-20 17:42:28 -07:00
Jon FreedmanandWesley Wigham a9394b8436 update plotly.js typing (#27355)
* update typing
- add missing event handlers from https://github.com/plotly/react-plotly.js/#event-handler-props
- add addFrames / deleteFrames functions
- use Font interface in ScatterMarker.colorbar
- change Font.color type from string to Color
- fix 'common mistakes': tabs to spaces

* fix linting errors

* use tab indentation and require in tslint
2018-07-20 17:42:18 -07:00
rfriedandWesley Wigham ce73aaf4ab paper 11.5 comprehensive update (#27356)
* Updating Matrix class to match 11.5 documentation and implementation.

* Updating Point class to reflect 11.5 documentation and implementation.

* Updating Rectangle class to reflect 11.5 documentation and implementation.

* Updating Size class to reflect 11.5 documentation and implementation.

* Updating PaperScope class to reflect 11.5 documentation and implementation.

* Update Item class to better reflect 11.5 documentation and implementation.

* Fixing up optional object property syntax in a couple places (',' should have been ';')

* Updating Shaep class to better reflect 11.5 documentation and implementation.

* Updating Raster class to better reflect 11.5 documentation and implementation.

* Updating PathItem class to better reflect 11.5 documentation and implementation. Removed methods from Path that were inherited from PathItem.

* Updating Path class to better reflect 11.5 documentation and implementation.

* Updating CompoundPath class to better reflect 11.5 documentation and implementation.

* Updating Segment class to better reflect 11.5 documentation and implementation.

* Updating Curve class to better reflect 11.5 documentation and implementation.

* Updating CurveLocation class to better reflect 11.5 documentation and implementation.

* Updating Project class to better reflect 11.5 documentation and implementation.

* Updating Symbol to better reflect 11.5 documentation and implementation.

* Updating Style class to better reflect 11.5 documentation and implementation.

* Updating GradientStop class to better reflect 11.5 documentation.

* Updating Color class to better reflect 11.5 documentation and implementation.

* Updating View class to better reflect 11.5 documentation and implementation.

* Updating the event classes to better reflect 11.5 documentation and implementation.

* Updating TextItem to better reflect 11.5 documentation and implementation.

* More accurate return type guidance for event handlers. Small fix to resolve lint error (object[] changed to any[]).

* Added name to 'Definitions by' section in header.

* Adding an IHitTestOptions interface to improve the intellisense on a 14-property object capable of being paritally defined. Now users can create an object which includes any number of the 14 properties and get some guidance on what each property does. It's syntactic sugar and I'll allow that it may just be unecessary.

* More hittest tests

* Adding project to the hittest tests

* After some testing I like the IHitTestOptions approach much better. It provides CTRL+SPACE intellisense with descriptions. It also allows any previous code that sent an object with at least 1 property to pass the test. As such I've removed the object literal as it increases future maintainence.

* Updating hittests to make sure the right returns are coming from the hittest functions

* test documentation

* Adding the Example 'Boolean Operations' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Example 'Candy Crash' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* From reviewing the example Sadie Likes To Draw and looking through the implementation... it looks like the property "fully selected" is actually available on the parent Item and not first available on Path as indicated in the documentation.

* Adding the Example 'SatieLikedToDraw' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Example 'Chain' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Example 'Tadpoles' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Example 'Nyan Rainbow' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Fixing a namespacing issue resolving the Rectangle class in the Path.Rectangle and Path.Ellipse constructors

* Adding the Example 'Rounded Rectangles' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* The gradient components of a Color are sometimes undefined. Also origin and destination were missing from the documentation and definition. They are accessible for gradient colors.

* Adding the Example 'Radial Rainbows' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Item's appendTop and appendBottom methods were hiding in the documentation. They aren't listed in the main Item class, they're listed as inherited by all its children.

* Adding the Example 'Meta Balls' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Example 'Voronoi' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Example 'Future Splash' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Example 'Smoothing' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Example 'Spiral Raster' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Example 'Division Raster' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding equals and clone methods to Segment class.

* Adding the Example 'Q-bertify' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Example 'Path Intersections' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Example 'Path Simplification' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Example 'Hit Testing' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Adding the Gradient constructor that is missing from the documentation.

* Adding the Example 'Bouncing Balls' rewritten as typescript to the tests. This hopefully mimics what a user might have done to adapt the examples and ensure that all the example interfaces are implemented correctly.

* Reading through the code and examples shows that there are a few more options for constructing the GradientStop class than documented officially.

* Accidentally inserted a redundant declaration

* More options for the Gradient class constructor.

* Adding type-specific clones to all children of Item. This allows for user code to better reflect the clone operation without having to cast things all the time.

* new constructor, addition, and insertiong parameter options for Paths in order to enable more streamlined code which better matches examples from the code reference. Namely the ability to shorthand a point/segment as [x,y] arrays. Fixing a weird type warning by adding yet another on/off event overload.

* Added all of the example code found as paperscript inside the API documentation. Piece of code had to be rewritten to conform to typing strictness and I did my best to match the feel and brevity of the code. As possible I translated these shorthand notations into further improvements into the type definition. This included things like Point/Segment array shorthand for Path creation. To some degree I just applied my opinion on what users might prefer while still being guided by a type system. There are probably further tweaks we can make in this vein but I found the changes sufficient to make the example code require little porting effort.

* I just realized that I have two github accounts. Before I have too many commits to my name I wanted to merge accounts and as a result I need to update my profile link in the 'Definitions by' header.
2018-07-20 17:42:07 -07:00
Jeff WilletteandWesley Wigham 778aaa7f32 Added _debug to Instance interface (#27297)
* Added _debug to Instance interface

* removed trailing whitespace
2018-07-20 17:40:52 -07:00
Josh CunninghamandWesley Wigham 421d259b31 Allow type for Express.Request.user (#27339) 2018-07-20 17:40:38 -07:00
Jiayu LiuandWesley Wigham 5ba0287527 update weixin-app's Component<T> interface (#27333) 2018-07-20 17:39:32 -07:00
BrandonandWesley Wigham 834879d2a9 remove the module declaration from the base slate package to simplify importing (#27347) 2018-07-20 17:39:17 -07:00
77637140d4 fuzzaldrin-plus@0.6.0: Update definitions (#27249)
* fuzzaldrin-plus@0.6.0: Update definitions

* Rename `IFuzzaldrinPlusOptions` to `IOptions`

Co-Authored-By: shiftkey <github@brendanforster.com>
2018-07-20 17:38:11 -07:00
Siwalik MandWesley Wigham 42bdf3969d Updating interface for cursor acc. to new API (#27332)
* Updating interface for cursor acc. to new API

* update contributor

* review changes
2018-07-20 17:37:40 -07:00
Krzysztof BogdanandWesley Wigham 097c9e20ad three.js add missing math.lerp and webglrenderer methods (#27317)
* Update three-core.d.ts

Add missing WebGLRenderer methods (getDrawingBufferSize, setDrawingBufferSize, getCurrentViewport)

* Update three-core.d.ts

remove unnecessary whitespace

* Add missing lerp method from Math namespace

* Fixed indentation & order
2018-07-20 17:37:25 -07:00
Krzysztof BogdanandWesley Wigham 4b5508062f Add missing generateMipmaps field (#27325)
Add missing generateMipmaps field from WebGLRenderTargetOptions
2018-07-20 17:36:43 -07:00
Jiayu LiuandWesley Wigham 0f848d5c20 update weixin-app to use union value for wx.request method? (#27316) 2018-07-20 17:34:45 -07:00
Jiayu LiuandWesley Wigham d912769f8d update weixin-app's triggerEvent (#27319) 2018-07-20 17:34:34 -07:00
Richie ForemanandWesley Wigham 1aa8a708ac Add types for $injector.{loadNewModules, modules} to types/angular (#27240)
* Add {loadNewModules, modules} to angular.auto.IInjectorService

* Add {loadNewModules, modules} to angular.auto.IInjectorService

* Allow for annotated functions in .loadNewModules()

* Fix Injectable Type

* Add useful docstrings (which are pretty much carbon copied from the Angular docs)

* I dont see any whitespace, but travis does.. remove junk

* more

* Add {loadNewModules, modules} to angular.auto.IInjectorService
2018-07-20 17:34:05 -07:00
Andrey TselishchevandWesley Wigham 960c7ef8a0 [@types/bson] Updated BSON types (#27259)
* `Binary`: Added `sub_type` property.
* `Code`: Added `code` and `scope` properties
* Added missing `Int32` type
* `Decimal128`: Added `bytes` property
* `BSONRegExp`: Added `pattern` and `options` properties
* `Symbol`: Added `valueOf()` method
2018-07-20 17:33:17 -07:00
nakagawa424andWesley Wigham efce430c49 cytoscape: fix map() (#27245)
* cytoscape: fix map()

* add tests
2018-07-20 17:32:24 -07:00
IkaandWesley Wigham cf6f86c363 fix(escape-string-regexp): correct version number (#27261) 2018-07-20 17:31:40 -07:00
CerberuserandWesley Wigham 87167476ba Cytoscape: layout events fix (#27314)
* Cytoscape: layout events fix

* fix: adjacent overloads
2018-07-20 17:31:26 -07:00
Rogier SchoutenandWesley Wigham 59c9faf71a fix returntype of publish() and sendToQueue() (#27322) 2018-07-20 17:31:13 -07:00
Ishaan MalhiandWesley Wigham e3727a66d2 [@types/aws-lambda] Add SQS Event Source (#27334)
* feat: Add initial typings

* feat: Add tests for SQS Event Source

* fix: linting fixes
2018-07-20 17:31:00 -07:00
sandWesley Wigham 43c1545b6e [@types/twit] removing myself from list of maintainers (#27343) 2018-07-20 17:30:42 -07:00
Fabio BergerandWesley Wigham cf883dad9d Add missing methods from ethereumjs-abi type (#27363) 2018-07-20 17:27:56 -07:00