forked from tensorflow/tensorboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the initializer into the constructor for instance members that r… (
tensorflow#6921) …eference identifiers declared in the constructor. This updates our OSS code with a change made in cl/678990911, to prevent the change being reverted the next time we sync into our internal code base. When TypeScript outputs modern language features, the below case throws an TS error. ``` class C { a = this.x; // TS2729: Property 'x' is used before its initialization. constructor(public x:number){} } ``` This error is fixed by moving the initializer of such class members into the constructor.
- Loading branch information
Showing
11 changed files
with
583 additions
and
553 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
Oops, something went wrong.