@@ -818,7 +818,7 @@ const frontDecorationDispatcher = {
818818 * @param {string } decorationColor decoration color
819819 * @access private
820820 */
821- function drawLineDecoration ( decoration : Decoration , data : { } , decorationColor : string ) {
821+ function drawLineDecoration ( decoration : Decoration , data : Record < string , any > , decorationColor : string ) {
822822 const { context, lineHeight, canvasWidth, yRow } = data
823823
824824 context . fillStyle = decorationColor
@@ -833,7 +833,7 @@ function drawLineDecoration(decoration: Decoration, data: {}, decorationColor: s
833833 * @param {string } decorationColor decoration color
834834 * @access private
835835 */
836- function drawGutterDecoration ( decoration : Decoration , data : { } , decorationColor : string ) {
836+ function drawGutterDecoration ( decoration : Decoration , data : Record < string , any > , decorationColor : string ) {
837837 const { context, lineHeight, yRow } = data
838838
839839 context . fillStyle = decorationColor
@@ -851,7 +851,7 @@ function drawGutterDecoration(decoration: Decoration, data: {}, decorationColor:
851851 * @param {string } decorationColor decoration color
852852 * @access private
853853 */
854- function drawHighlightDecoration ( decoration : Decoration , data : { } , decorationColor : string ) {
854+ function drawHighlightDecoration ( decoration : Decoration , data : Record < string , any > , decorationColor : string ) {
855855 const { context, lineHeight, charWidth, canvasWidth, screenRow, yRow } = data
856856
857857 const range = decoration . getMarker ( ) . getScreenRange ( )
@@ -883,7 +883,7 @@ function drawHighlightDecoration(decoration: Decoration, data: {}, decorationCol
883883 * @param {string } decorationColor decoration color
884884 * @access private
885885 */
886- function drawHighlightOutlineDecoration ( decoration : Decoration , data : { } , decorationColor : string ) {
886+ function drawHighlightOutlineDecoration ( decoration : Decoration , data : Record < string , any > , decorationColor : string ) {
887887 const { context, lineHeight, charWidth, canvasWidth, screenRow, yRow } = data
888888
889889 let bottomWidth , colSpan , width , xBottomStart , xEnd , xStart
@@ -968,7 +968,7 @@ function drawHighlightOutlineDecoration(decoration: Decoration, data: {}, decora
968968 */
969969function drawCustomDecoration (
970970 decoration : Decoration ,
971- data : { } ,
971+ data : Record < string , any > ,
972972 decorationColor : string ,
973973 editorElement : TextEditorElement
974974) {
@@ -997,9 +997,9 @@ function drawCustomDecoration(
997997 */
998998function drawDecorations (
999999 screenRow : number ,
1000- decorations : { } ,
1001- renderData : { } ,
1002- types : { } ,
1000+ decorations : Record < string , any > ,
1001+ renderData : Record < string , any > ,
1002+ types : Record < string , any > ,
10031003 editorElement : TextEditorElement
10041004) {
10051005 let decorationsToRender = [ ]
@@ -1061,7 +1061,7 @@ function drawFrontDecorationsForLines(
10611061 firstRow : number ,
10621062 lastRow : number ,
10631063 offsetRow : number ,
1064- renderData : { } ,
1064+ renderData : Record < string , any > ,
10651065 lineHeight : number ,
10661066 editorElement : TextEditorElement ,
10671067 decorations : Array < Decoration >
@@ -1102,7 +1102,7 @@ function drawBackDecorationsForLines(
11021102 firstRow : number ,
11031103 lastRow : number ,
11041104 offsetRow : number ,
1105- renderData : { } ,
1105+ renderData : Record < string , any > ,
11061106 lineHeight : number ,
11071107 editorElement : TextEditorElement ,
11081108 decorations : Array < Decoration >
0 commit comments