Commit graph

11 commits

Author SHA1 Message Date
Joseph Wunderlich 21ab39649c remove any annotation from declare method quickfix 2019-02-22 17:24:21 -08:00
Alexander T 37b9a6bca4 25840 - Add a more meaningful error message to the case when calling a public static method on an instance (#25922)
* add a more meaningful error message to the case when calling a public static method on an instance

* Fix tests
2018-08-06 10:24:48 -07:00
Wesley Wigham fefc47fae3
Flag JS Literals and ignore assignments/accesses to invalid props, instead of adding an index (#25996)
* Remove index signatures from js literals, use an object flag to indicate errors should be ignored instead

* Add focused test on the keyof problem

* Fix fourslash test

* Reenable errors with noImplicitAny flag

* Also disable excess property checks outside of noImplicitAny mode for js literals

* Edit and move comments
2018-08-02 13:40:44 -07:00
Markus Johnsson cb5b77365c Merge branch 'master' of github.com:Microsoft/TypeScript 2018-06-10 14:59:13 +02:00
Markus Johnsson 627c95e3f5 Infer parameter names and types when applying Delcare Method codefix (#22180) 2018-02-28 08:55:07 +01:00
Nathan Shively-Sanders 88c67fa777 Refactor binder and update baselines.
Also improve assert message in fourslash.
2018-02-13 15:44:15 -08:00
Nathan Shively-Sanders 33c084f5df Return baselines to original state
Except for adding a newline at the end of file. That's required by
Linux, you know!
2018-02-09 10:47:45 -08:00
Nathan Shively-Sanders b0aebb4c1e Recursive object-literal-assignment declarations 2018-02-08 15:43:10 -08:00
Andy fe9129b1ab Support contextual type for property assignments in JS that are not declarations (#18820) 2017-10-04 09:32:09 -07:00
Arthur Ozga f9123aa5cc rename fourslash method 2017-06-01 11:01:00 -07:00
Arthur Ozga c125f080a4 add tests 2017-05-31 17:18:36 -07:00