@@ -818,7 +818,7 @@ const frontDecorationDispatcher = {
818
818
* @param {string } decorationColor decoration color
819
819
* @access private
820
820
*/
821
- function drawLineDecoration ( decoration : Decoration , data : { } , decorationColor : string ) {
821
+ function drawLineDecoration ( decoration : Decoration , data : Record < string , any > , decorationColor : string ) {
822
822
const { context, lineHeight, canvasWidth, yRow } = data
823
823
824
824
context . fillStyle = decorationColor
@@ -833,7 +833,7 @@ function drawLineDecoration(decoration: Decoration, data: {}, decorationColor: s
833
833
* @param {string } decorationColor decoration color
834
834
* @access private
835
835
*/
836
- function drawGutterDecoration ( decoration : Decoration , data : { } , decorationColor : string ) {
836
+ function drawGutterDecoration ( decoration : Decoration , data : Record < string , any > , decorationColor : string ) {
837
837
const { context, lineHeight, yRow } = data
838
838
839
839
context . fillStyle = decorationColor
@@ -851,7 +851,7 @@ function drawGutterDecoration(decoration: Decoration, data: {}, decorationColor:
851
851
* @param {string } decorationColor decoration color
852
852
* @access private
853
853
*/
854
- function drawHighlightDecoration ( decoration : Decoration , data : { } , decorationColor : string ) {
854
+ function drawHighlightDecoration ( decoration : Decoration , data : Record < string , any > , decorationColor : string ) {
855
855
const { context, lineHeight, charWidth, canvasWidth, screenRow, yRow } = data
856
856
857
857
const range = decoration . getMarker ( ) . getScreenRange ( )
@@ -883,7 +883,7 @@ function drawHighlightDecoration(decoration: Decoration, data: {}, decorationCol
883
883
* @param {string } decorationColor decoration color
884
884
* @access private
885
885
*/
886
- function drawHighlightOutlineDecoration ( decoration : Decoration , data : { } , decorationColor : string ) {
886
+ function drawHighlightOutlineDecoration ( decoration : Decoration , data : Record < string , any > , decorationColor : string ) {
887
887
const { context, lineHeight, charWidth, canvasWidth, screenRow, yRow } = data
888
888
889
889
let bottomWidth , colSpan , width , xBottomStart , xEnd , xStart
@@ -968,7 +968,7 @@ function drawHighlightOutlineDecoration(decoration: Decoration, data: {}, decora
968
968
*/
969
969
function drawCustomDecoration (
970
970
decoration : Decoration ,
971
- data : { } ,
971
+ data : Record < string , any > ,
972
972
decorationColor : string ,
973
973
editorElement : TextEditorElement
974
974
) {
@@ -997,9 +997,9 @@ function drawCustomDecoration(
997
997
*/
998
998
function drawDecorations (
999
999
screenRow : number ,
1000
- decorations : { } ,
1001
- renderData : { } ,
1002
- types : { } ,
1000
+ decorations : Record < string , any > ,
1001
+ renderData : Record < string , any > ,
1002
+ types : Record < string , any > ,
1003
1003
editorElement : TextEditorElement
1004
1004
) {
1005
1005
let decorationsToRender = [ ]
@@ -1061,7 +1061,7 @@ function drawFrontDecorationsForLines(
1061
1061
firstRow : number ,
1062
1062
lastRow : number ,
1063
1063
offsetRow : number ,
1064
- renderData : { } ,
1064
+ renderData : Record < string , any > ,
1065
1065
lineHeight : number ,
1066
1066
editorElement : TextEditorElement ,
1067
1067
decorations : Array < Decoration >
@@ -1102,7 +1102,7 @@ function drawBackDecorationsForLines(
1102
1102
firstRow : number ,
1103
1103
lastRow : number ,
1104
1104
offsetRow : number ,
1105
- renderData : { } ,
1105
+ renderData : Record < string , any > ,
1106
1106
lineHeight : number ,
1107
1107
editorElement : TextEditorElement ,
1108
1108
decorations : Array < Decoration >
0 commit comments