Commit Graph

3274 Commits

Author SHA1 Message Date
Anders Hejlsberg
76e71ab9a3 Merge pull request #11126 from Microsoft/nonWideningLiterals
Non-widening explicit literal types
2016-09-26 15:22:25 -07:00
Yui
3d921175a9 Merge pull request #11114 from Microsoft/restructureASTToParseReactAttributesAsObjectLiteral
Restructure ast to parse react attributes as object literal
2016-09-26 15:04:38 -07:00
Anders Hejlsberg
e1d5bdffd7 String and numeric literal initializes in ambient const declarations 2016-09-26 12:46:39 -07:00
Kanchalai Tanglertsampan
3c74558e08 Address PR: use ObjectLiteralElement as an interface name and ObjectLitearlElementLike as a type alias 2016-09-26 11:42:40 -07:00
Noah Chen
05ceda747d Fix error when compiling with declarations 2016-09-26 01:00:24 -04:00
Anders Hejlsberg
e6efb15a53 Lazily create fresh literal types 2016-09-24 08:09:06 -07:00
Anders Hejlsberg
55034d8e10 Emit widened literal type for const without type annotation 2016-09-24 07:38:26 -07:00
Anders Hejlsberg
a3c18b4a10 Only widen fresh literal types 2016-09-23 16:06:25 -07:00
Anders Hejlsberg
7d4a18766c Track freshness of string and numeric literals 2016-09-23 09:30:50 -07:00
Anders Hejlsberg
40327b310f Merge pull request #11001 from Microsoft/silentNever
Fix control flow loop analysis with incomplete types
2016-09-21 13:22:36 -07:00
Anders Hejlsberg
ed338013e0 Use silent never type in control flow loop analysis 2016-09-19 16:08:39 -07:00
Anders Hejlsberg
9f22bad4ba Use TypeFlags.Never to check for 'never' type 2016-09-19 12:56:46 -07:00
Yuichi Nukiyama
c76b8b165b fix linting error 2016-09-17 21:45:46 +09:00
Yuichi Nukiyama
632619861d change error message for assigning from object 2016-09-17 11:14:11 +09:00
Kanchalai Tanglertsampan
58976ffd38 Merge branch 'master' into emitTypeAliasInDeclarationFile 2016-09-16 14:29:54 -07:00
Kanchalai Tanglertsampan
f137c92deb Address PR 2016-09-16 14:08:03 -07:00
Kanchalai Tanglertsampan
e8810812e0 Serialize type alias when type alias symbol is not accessible 2016-09-16 09:16:55 -07:00
Ryan Cavanaugh
98a3fc55d8 Merge pull request #10929 from RyanCavanaugh/fix10638
Allow type and NS references to UMD globals from modules
2016-09-15 14:00:51 -07:00
Nathan Shively-Sanders
955f2f2fc0 Merge pull request #10671 from Microsoft/new-jsdoc-parser
Remove service's jsdoc parser and enhance parser's jsdoc parser
2016-09-15 12:27:43 -07:00
Nathan Shively-Sanders
f8f244f68a Merge branch 'master' into new-jsdoc-parser 2016-09-15 11:53:04 -07:00
Anders Hejlsberg
bbf80a733c Merge pull request #10920 from Microsoft/fixLiteralUnionInference
Fix literal union type inference
2016-09-14 17:48:17 -07:00
Ryan Cavanaugh
9e6116851f Allow type and NS references to UMD globals from modules
Fixes #10638
2016-09-14 15:56:43 -07:00
Anders Hejlsberg
832295d8b0 Address CR feedback 2016-09-14 14:58:39 -07:00
Anders Hejlsberg
e9ad5daddc Match number and string literal types to number and string in inference 2016-09-14 10:29:51 -07:00
Ryan Cavanaugh
6a899721ba Lint 2016-09-14 10:02:00 -07:00
Ryan Cavanaugh
a399e8dc6d Fix merge conflict 2016-09-14 09:51:56 -07:00
Andy
f00d3fcede Merge pull request #9897 from Microsoft/umd_export
Clarify code checking for UMD exports...
2016-09-14 06:25:49 -07:00
Mohamed Hegazy
5367249e20 Merge branch 'fixUnionTypeCallSignature' of https://github.com/erictsangx/TypeScript into erictsangx-fixUnionTypeCallSignature 2016-09-13 22:26:48 -07:00
Mohamed Hegazy
7fb0e15042 Use diffrent error message for namespaces unexported members 2016-09-13 21:59:18 -07:00
Mohamed Hegazy
94ddbb580b Merge branch 'change_unexposed_error_message' of https://github.com/YuichiNukiyama/TypeScript into YuichiNukiyama-change_unexposed_error_message 2016-09-13 20:59:15 -07:00
Anders Hejlsberg
8079b8d31d Merge pull request #10881 from Microsoft/typeAssertionInitializers
Type assertion in initializer suppresses literal widening
2016-09-13 16:33:11 -07:00
Ryan Cavanaugh
537fee191c Resolve diagnostics conflict 2016-09-13 15:13:24 -07:00
Mohamed Hegazy
e6479334e1 Merge pull request #10333 from jwbay/better-type-as-value-error
Add clearer error message when types are used as values
2016-09-13 14:15:48 -07:00
Mohamed Hegazy
a612d586c6 Merge pull request #10582 from oijazsh/TS2339
Show an elaboration when accessing a non-existent property of a union type
2016-09-13 13:57:14 -07:00
Ryan Cavanaugh
8cadf56996 Add JSX to SEF exprs 2016-09-13 11:51:56 -07:00
Ryan Cavanaugh
add7c1a664 Flip check, add SEF cases 2016-09-13 11:50:37 -07:00
Ryan Cavanaugh
ced5f62eb1 Merge branch 'master' into disallowBadCommas 2016-09-13 11:43:59 -07:00
Nathan Shively-Sanders
95210acf03 Merge pull request #10784 from Microsoft/enum-number-assignability-in-unions
Number and enum literal are assignable to enums, even inside unions
2016-09-13 09:30:16 -07:00
Nathan Shively-Sanders
5ed0653295 Remove unnecessary parentheses 2016-09-13 08:48:07 -07:00
Andy Hanson
715d3f234e Merge branch 'master' into umd_export 2016-09-13 08:41:37 -07:00
Anders Hejlsberg
caa2bd5bd8 Merge branch 'master' into typeAssertionInitializers 2016-09-12 18:04:39 -07:00
Anders Hejlsberg
816808c098 No widening of inferred type when initializer has a type assertion 2016-09-12 15:55:52 -07:00
Ryan Cavanaugh
5b3c272dbb Disallow left comma operator operands which don't have side effects 2016-09-12 14:45:42 -07:00
Nathan Shively-Sanders
cf36fafe9a Computed enum assignability is semi-structural 2016-09-12 14:43:24 -07:00
Nathan Shively-Sanders
977b788559 Enum assignability:loosen numbers+tighten computed
1. All numbers and numeric literals are assignable to all enums and enum
literals.
2. Computed enums are no longer assignable to anything except
themselves, even if they would otherwise be "semi-structurally"
compatible.
2016-09-12 14:11:47 -07:00
Mohamed Hegazy
208b341733 Merge branch 'master' into fixNarrowingWithAny 2016-09-12 14:07:34 -07:00
Anders Hejlsberg
6e8182d7e7 Quick bail out when narrowing type any by equality 2016-09-12 12:41:15 -07:00
Mohamed Hegazy
1fce34be71 Merge pull request #10839 from Microsoft/fixNarrowingWithTypeParameter
Fix narrowing with constrained type parameter
2016-09-12 11:25:21 -07:00
Nathan Shively-Sanders
0f1618106c Merge branch 'master' into enum-number-assignability-in-unions 2016-09-12 10:12:26 -07:00
Nathan Shively-Sanders
9861c0f676 Fix lint 2016-09-12 10:07:21 -07:00