@@ -12,20 +12,20 @@ export abstract class RangeValue {
1212 /// The bias value at the start of the range. Determines how the
1313 /// range is positioned relative to other ranges starting at this
1414 /// position. Defaults to 0.
15- startSide ! : number
15+ declare startSide : number
1616 /// The bias value at the end of the range. Defaults to 0.
17- endSide ! : number
17+ declare endSide : number
1818
1919 /// The mode with which the location of the range should be mapped
2020 /// when its `from` and `to` are the same, to decide whether a
2121 /// change deletes the range. Defaults to `MapMode.TrackDel`.
22- mapMode ! : MapMode
22+ declare mapMode : MapMode
2323 /// Determines whether this value marks a point range. Regular
2424 /// ranges affect the part of the document they cover, and are
2525 /// meaningless when empty. Point ranges have a meaning on their
2626 /// own. When non-empty, a point range is treated as atomic and
2727 /// shadows any ranges contained in it.
28- point ! : boolean
28+ declare point : boolean
2929
3030 /// Create a [range](#state.Range) with this value.
3131 range ( from : number , to = from ) { return Range . create ( from , to , this ) }
@@ -540,12 +540,12 @@ function findSharedChunks(a: readonly RangeSet<any>[], b: readonly RangeSet<any>
540540}
541541
542542class LayerCursor < T extends RangeValue > {
543- from ! : number
544- to ! : number
545- value ! : T | null
543+ declare from : number
544+ declare to : number
545+ declare value : T | null
546546
547- chunkIndex ! : number
548- rangeIndex ! : number
547+ declare chunkIndex : number
548+ declare rangeIndex : number
549549
550550 constructor ( readonly layer : RangeSet < T > ,
551551 readonly skip : Set < Chunk < T > > | null ,
@@ -626,10 +626,10 @@ class LayerCursor<T extends RangeValue> {
626626}
627627
628628class HeapCursor < T extends RangeValue > {
629- from ! : number
630- to ! : number
631- value ! : T | null
632- rank ! : number
629+ declare from : number
630+ declare to : number
631+ declare value : T | null
632+ declare rank : number
633633
634634 constructor ( readonly heap : LayerCursor < T > [ ] ) { }
635635
0 commit comments