Commit Graph
47834 Commits
Author SHA1 Message Date
rfried 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 Willette 778aaa7f32 Added _debug to Instance interface (#27297)
* Added _debug to Instance interface

* removed trailing whitespace
2018-07-20 17:40:52 -07:00
Josh Cunningham 421d259b31 Allow type for Express.Request.user (#27339) 2018-07-20 17:40:38 -07:00
Jiayu Liu 5ba0287527 update weixin-app's Component<T> interface (#27333) 2018-07-20 17:39:32 -07:00
Brandon 834879d2a9 remove the module declaration from the base slate package to simplify importing (#27347) 2018-07-20 17:39:17 -07:00
Ronald Reyandshiftkey 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 M 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 Bogdan 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 Bogdan 4b5508062f Add missing generateMipmaps field (#27325)
Add missing generateMipmaps field from WebGLRenderTargetOptions
2018-07-20 17:36:43 -07:00
Jiayu Liu 0f848d5c20 update weixin-app to use union value for wx.request method? (#27316) 2018-07-20 17:34:45 -07:00
Jiayu Liu d912769f8d update weixin-app's triggerEvent (#27319) 2018-07-20 17:34:34 -07:00
Richie Foreman 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 Tselishchev 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
nakagawa424 efce430c49 cytoscape: fix map() (#27245)
* cytoscape: fix map()

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

* fix: adjacent overloads
2018-07-20 17:31:26 -07:00
Rogier Schouten 59c9faf71a fix returntype of publish() and sendToQueue() (#27322) 2018-07-20 17:31:13 -07:00
Ishaan Malhi 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
s 43c1545b6e [@types/twit] removing myself from list of maintainers (#27343) 2018-07-20 17:30:42 -07:00
Fabio Berger cf883dad9d Add missing methods from ethereumjs-abi type (#27363) 2018-07-20 17:27:56 -07:00
Mattias Buelens 1d3d5b231a [whatwg-streams] Fixes for readable byte streams (#27375)
* ReadableByteStreamController.enqueue accepts any ArrayBufferView

See step 5 in https://streams.spec.whatwg.org/#rbs-controller-enqueue

* ReadableStreamBYOBRequest.view is always a Uint8Array

See step 2b in https://streams.spec.whatwg.org/#rbs-controller-byob-request

* ReadableByteStreamController.byobRequest may be undefined

See step 2 in https://streams.spec.whatwg.org/#rbs-controller-byob-request

* Remove unused type parameter on ReadableByteStreamSource and related classes

* Fix tests

* Replace IteratorResult with own interface to avoid dependency on ES2015 types
2018-07-20 17:27:47 -07:00
Zev Spitz d00d623d95 activex-excel: Default properties; remove EnumeratorConstructor overloads; reduce any (#27427)
* Default properties; reduce any; remove EnumeratorConstructor overloads

* Test fixes
2018-07-20 17:26:40 -07:00
Grant Timmerman c6a52c68c8 Override Google Apps Script generated types (remove Object, add JSDoc comments) (#27459) 2018-07-20 17:25:47 -07:00
Andy d937097f80 knex: Remove unnecessary 'lodash' dependency (#27450) 2018-07-20 11:49:48 -07:00
Eloy Durán 1e85dbe62c Merge pull request #27435 from a-tarasyuk/feature/add-image-ref-prop-to-image-background
[react-native] - Add imageRef prop to ImageBackground
2018-07-20 19:11:11 +02:00
Radu Raicea 20be7a25e7 Add createButton types for googlepay (#27303)
* Add createButton types for googlepay

New API changes added createButton, a method to request the creation of
a HTMLElement button.

* Bump googlepay version and author list

* Change from Promise to HTMLElement in googlepay

The return value for createButton is HTMLElement, not
Promise<HTMLElement>.
2018-07-20 16:44:39 +01:00
Lorex75 c9a4dbbefa snapTo method (#27415)
* snapTo method

As per Official Docs, this method accept as first parameter or a number or an array of numbers, not just an array of numbers (docs -> http://snapsvg.io/docs/#Snap.snapTo, source -> https://github.com/adobe-webplatform/Snap.svg/blob/b242f49e6798ac297a3dad0dfb03c0893e394464/src/svg.js#L519)

* Typo
2018-07-20 08:43:03 -07:00
Leonard Thieu 63867fb112 [jquery] offset can accept a partial Coordinates object. (#27437) 2018-07-20 13:31:21 +01:00
Alexaner T 3f26db8119 Add imageRef prop to ImageBackground 2018-07-20 14:11:33 +03:00
Andy a5ab4665a8 reactstrap: Set TS version to 2.9 (#27372) 2018-07-19 15:51:48 -07:00
Andy f6fbbec6a8 topojson-specification: Make compatible with ts3.0 (#27379) 2018-07-19 07:56:50 -07:00
Andy 758b028f89 heatmap.js: Make compatible with ts3.0 (#27393) 2018-07-19 07:56:34 -07:00
Alan Agius a976849308 uglify-js: turn on strictNullChecks (#27408) 2018-07-19 06:18:17 +01:00
Eloy Durán a7079a1139 Merge pull request #27362 from mshoho/react-native-typo-fix
React native typo fix
2018-07-17 22:51:08 +02:00
Marat Abdullin b6e31ebe69 Adding the test. 2018-07-17 13:53:59 +02:00
Marat Abdullin f1be7646d5 Fixing the typo in a property name. 2018-07-17 13:44:39 +02:00
Sindre 91f8a6b7d1 auto-bind definitions (#27299)
* auto-bind definitions

* auto-bind: fix lint errors

* auto-bind: PR feedback, fix import syntax in tests
2018-07-16 11:09:10 -07:00
Sebastian Lenz 504902e974 Add third parameter parent to matchPath, add prop sensitive to Route (#27336)
* Add third parameter `parent` to matchPath

MathPath takes a third parameter, see https://github.com/ReactTraining/react-router/blob/master/packages/react-router/modules/matchPath.js#L28

* Add prop `sensitive` to Route

Routes accept the prop `sensitive`, see https://reacttraining.com/react-router/web/api/Route/sensitive-bool
2018-07-16 17:51:24 +01:00
Ben Grynhaus b56eb29ea6 Added types for 'css-to-style' (#27253) 2018-07-15 12:47:55 -07:00
Klaus Meinhardt 6e4e25a30e add git-url-parse (#27233) 2018-07-15 12:47:32 -07:00
Klaus Meinhardt 6c93547985 add parse-github-url (#27230)
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.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).
- [x] The package does not already provide its own types, or cannot have its `.d.ts` files generated via `--declaration`
- [x] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.
- [x] Create it with `dts-gen --dt`, not by basing it on an existing project.
- [x] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, `strictNullChecks`, and `strictFunctionTypes` set to `true`.
2018-07-15 12:46:51 -07:00
Klaus Meinhardt d37a85553f Add github-url-to-object (#27229)
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.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).
- [x] The package does not already provide its own types, or cannot have its `.d.ts` files generated via `--declaration`
- [x] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.
- [x] Create it with `dts-gen --dt`, not by basing it on an existing project.
- [x] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, `strictNullChecks`, and `strictFunctionTypes` set to `true`.
2018-07-15 12:46:24 -07:00
Sebastian Silbermann 4ca4cba9ea [react-select]: add typings for valueComponent prop (#27145) 2018-07-15 12:45:29 -07:00
Jonathan Skeate fc1bfd0f9e [material-ui] Add placeholder, title to TextFieldProps (#27082) 2018-07-15 12:44:37 -07:00
Adam Binford ec15c9c9a3 Expanded allowable redux version (#27156) 2018-07-15 12:44:07 -07:00
Allison Shaw 2ace47c404 Update index.d.ts (#27158)
Expose the public GenericOptions const to users.
2018-07-15 12:43:32 -07:00
Emilio Martinez 11bb84af8c feat(html-webpack-plugin): add html-webpack-plugin hook definitions (#27135) 2018-07-15 12:43:04 -07:00
sparklellama 606b1af8e1 Add access to numer.js options (#27159)
Not possible to set options for numeral.js with current .d.ts.  Adding the following seems to get it working on my project so hoping it can be included at the DefinitelyTyped end.
2018-07-15 12:42:15 -07:00
Andrew Debens 215cb1970b [classnames] Supporting ES6 & commonjs module imports (#27127)
* Updating classnames types for es6 and node imports

* Fixing linting
2018-07-15 12:38:59 -07:00
Marcin Tomczyk 2550b11007 Add types for jexl@1.1 by TechnologyAdvice; new owner TomFrost (#27269) 2018-07-15 12:38:16 -07:00