Commit Graph

18 Commits

Author SHA1 Message Date
Andy
39d94c080d
Make import { fabric } from "fabric"; work (2) (#23787) 2018-02-20 12:39:00 -08:00
Tiger Oakes
a6e83ca94a Fixing lint errors 2018-01-31 13:30:17 -08:00
Tiger Oakes
ada6eccec2 Improved StaticCanvas types 2018-01-31 13:27:12 -08:00
Tiger Oakes
29d9e1b3b4 Fabric.js: Replaced some any types, fixed subclass return types, fixed #15811 (#23113)
* Adjusted fabric.Object so that chainable methods return superclass type instead of fabric.Object.

Also changed type of propertiesToInclude to string[] instead of any[]. Other methods related to props, such as `get()`, refer to properties as strings.

* Small tweaks to types
setBackgroundImage can omit callback
cornerStrokeColor is a property on object
rotateVector and qrDecompose are misc util functions

* Changed parameter types to be more precise. Used mapped types in get/set to enforce correct corresponding types

* Renamed non-existent classes and replaced with correct fabric classes

* Changed to pass linter
2018-01-26 09:14:40 -08:00
Andy
c164250b98 fabric: Fix lint (#20842) 2017-10-23 07:33:10 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Andy
cb2dbfbb50 Add ignores for new lint rules (#19504) 2017-09-01 07:47:52 -07:00
Andy
924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
Kevin Leung
b684f13531 [fabric] Lower case Boolean 2017-06-28 06:21:16 +08:00
Nathan Shively-Sanders
4874667de9 Fix primitive weak type errors
These weak type errors were not caught in TS 2.4 RC. The final TS 2.4
will catch weak type errors with primitives, so this PR fixes those
now-caught errors.
2017-06-15 11:46:46 -07:00
Mohamed Hegazy
2266dcb934 Fix lint failures (#16904) 2017-06-01 18:24:48 -07:00
Jelle Slowack
3437921207 fabric: callback and options object is optional in setSrc method (#16101)
* callback and options object is optional in setSrc method

* run tsc fixes, remove deprecated internal modules and HtmlInputElement casts
2017-05-04 18:18:01 -07:00
Andy
e50f8878a5 Use new strict-export-declare-modifiers lint rule (#15844) 2017-04-14 08:20:12 -07:00
Andy
bbc61fbf93 Extend "dtslint/dt.json" directly instead of "../tslint.json". (#15822)
* Extend "dtslint/dt.json" directly instead of "../tslint.json".

* Convert more "../tslint.json" to "dtslint/dt.json"

* no-redundant-modifiers -> strict-export-declare-modifiers
2017-04-14 08:04:05 -07:00
Andy
e69b58e400 Apply new lint rules to ever more packages (#15551) 2017-03-31 12:19:34 -07:00
Andy
d426ff3083 Apply new lint rules to yet more packages (#15486) 2017-03-29 14:46:16 -07:00
Andy
5f3ba45136 Use dtslint (#15482) 2017-03-29 13:07:39 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00