You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move the initializer into the constructor for instance members that r… (#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.
Copy file name to clipboardExpand all lines: tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/graph_executions/graph_executions_container.ts
+26-20Lines changed: 26 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -42,33 +42,19 @@ import {State} from '../../store/debugger_types';
0 commit comments