11// eslint-disable-next-line @typescript-eslint/no-unused-vars
22namespace OSFramework . Maps . DrawingTools {
33 export abstract class AbstractDrawingTools <
4- W ,
5- // eslint-disable-next-line @typescript-eslint/no-unused-vars
4+ W extends IDrawingToolsProvider ,
65 T extends Configuration . IConfigurationDrawingTools
76 > implements IDrawingTools
87 {
@@ -15,8 +14,7 @@ namespace OSFramework.Maps.DrawingTools {
1514 private _widgetId : string ;
1615
1716 protected _built : boolean ;
18- // eslint-disable-next-line @typescript-eslint/no-explicit-any
19- protected _createElements : Array < any > ;
17+ protected _createElements : Array < unknown > ;
2018 protected _drawingToolsEvents : Event . DrawingTools . DrawingToolsEventsManager ;
2119 protected _provider : W ;
2220
@@ -35,8 +33,7 @@ namespace OSFramework.Maps.DrawingTools {
3533 public get config ( ) : T {
3634 return this . _config ;
3735 }
38- // eslint-disable-next-line @typescript-eslint/no-explicit-any
39- public get createdElements ( ) : Array < any > {
36+ public get createdElements ( ) : Array < unknown > {
4037 return this . _createElements ;
4138 }
4239 public get drawingToolsEvents ( ) : Event . DrawingTools . DrawingToolsEventsManager {
@@ -95,8 +92,10 @@ namespace OSFramework.Maps.DrawingTools {
9592 this . _setWidgetId ( ) ;
9693 }
9794
98- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
99- public changeProperty ( propertyName : string , propertyValue : any ) : void {
95+ public changeProperty (
96+ propertyName : string ,
97+ propertyValue : unknown
98+ ) : void {
10099 //Update Shape's config when the property is available
101100 if ( this . config . hasOwnProperty ( propertyName ) ) {
102101 this . config [ propertyName ] = propertyValue ;
@@ -113,8 +112,7 @@ namespace OSFramework.Maps.DrawingTools {
113112 public changeToolProperty (
114113 toolId : string ,
115114 propertyName : string ,
116- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
117- propertyValue : any
115+ propertyValue : unknown
118116 ) : void {
119117 const tool = this . _tools . get ( toolId ) ;
120118 tool . changeProperty ( propertyName , propertyValue ) ;
@@ -131,9 +129,8 @@ namespace OSFramework.Maps.DrawingTools {
131129 return id === this . _uniqueId || id === this . widgetId ;
132130 }
133131
134- // eslint-disable-next-line @typescript-eslint/no-explicit-any
135132 public getProviderConfig ( ) : Configuration . IConfigurationDrawingTools {
136- return this . _config . getProviderConfig ( ) ;
133+ return this . _config . getProviderConfig ( ) as Configuration . IConfigurationDrawingTools ;
137134 }
138135
139136 public hasTool ( toolId : string ) : boolean {
@@ -169,8 +166,7 @@ namespace OSFramework.Maps.DrawingTools {
169166 return this . providerEvents . indexOf ( eventName ) !== - 1 ;
170167 }
171168
172- // eslint-disable-next-line @typescript-eslint/no-explicit-any
173- public abstract get providerEvents ( ) : any ;
169+ public abstract get providerEvents ( ) : Array < string > ;
174170
175171 public abstract refreshProviderEvents ( ) : void ;
176172 }
0 commit comments