-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
48 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d9edd58
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to Typescript 3.7
Typescript 3.7 was released a few weeks ago, but a coloring issue with
??
operator in TSX files in Visual Studio was preventing the merge.With the new version of Visual Studio (16.4.0) the problem is solved, so no reason not to merge the branch now.
The main benefit is the introduction of
??
and?.
operators in Typescript, both well known from C#.How to update
<TypeScriptToolsVersion>3.6</TypeScriptToolsVersion>
to<TypeScriptToolsVersion>3.7</TypeScriptToolsVersion>
.Microsoft.TypeScript.MSBuild
3.6.3 -> 3.7.2"ts-loader": "6.2.1"
and"typescript": "3.7.3"
.||
operator in tsx files and check if the intention was to make a boolean operation (keep) or give a default value for null/undefined (replace by??
)bla && bla.name
bybla?.name
. You can use this regex:Here is a diff of the commits before and after TS 3.7
d9edd58
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.