@@ -9,8 +9,8 @@ import {EditorView} from "./editorview"
99const MaxJoinLen = 256
1010
1111export class TextView extends ContentView {
12- children ! : ContentView [ ]
13- dom ! : Text | null
12+ declare children : ContentView [ ]
13+ declare dom : Text | null
1414
1515 constructor ( public text : string ) {
1616 super ( )
@@ -69,7 +69,7 @@ export class TextView extends ContentView {
6969}
7070
7171export class MarkView extends ContentView {
72- dom ! : HTMLElement | null
72+ declare dom : HTMLElement | null
7373
7474 constructor ( readonly mark : MarkDecoration ,
7575 public children : ContentView [ ] = [ ] ,
@@ -159,8 +159,8 @@ function textCoords(text: Text, pos: number, side: number): Rect | null {
159159
160160// Also used for collapsed ranges that don't have a placeholder widget!
161161export class WidgetView extends ContentView {
162- children ! : ContentView [ ]
163- dom ! : HTMLElement | null
162+ declare children : ContentView [ ]
163+ declare dom : HTMLElement | null
164164 prevWidget : WidgetType | null = null
165165
166166 static create ( widget : WidgetType , length : number , side : number ) {
@@ -256,8 +256,8 @@ export class WidgetView extends ContentView {
256256// browser bugs that show up when the cursor is directly next to
257257// uneditable inline content.
258258export class WidgetBufferView extends ContentView {
259- children ! : ContentView [ ]
260- dom ! : HTMLElement | null
259+ declare children : ContentView [ ]
260+ declare dom : HTMLElement | null
261261
262262 constructor ( readonly side : number ) { super ( ) }
263263
0 commit comments