forked from MapComplete/MapComplete
		
	Refactoring: add deprecation warnings
This commit is contained in:
		
							parent
							
								
									d749b5c68f
								
							
						
					
					
						commit
						df82c17cc1
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		|  | @ -4,7 +4,7 @@ function genImages(dryrun = false) { | ||||||
|     const dir = fs.readdirSync("./assets/svg") |     const dir = fs.readdirSync("./assets/svg") | ||||||
| 
 | 
 | ||||||
|     let module = |     let module = | ||||||
|         'import Img from "./UI/Base/Img";\nimport {FixedUiElement} from "./UI/Base/FixedUiElement";\n\nexport default class Svg {\n\n\n' |         'import Img from "./UI/Base/Img";\nimport {FixedUiElement} from "./UI/Base/FixedUiElement";\n\n/* @deprecated */\nexport default class Svg {\n\n\n' | ||||||
|     const allNames: string[] = [] |     const allNames: string[] = [] | ||||||
|     for (const path of dir) { |     for (const path of dir) { | ||||||
|         if (path.endsWith("license_info.json")) { |         if (path.endsWith("license_info.json")) { | ||||||
|  |  | ||||||
|  | @ -1,5 +1,8 @@ | ||||||
| import BaseUIElement from "./BaseUIElement" | import BaseUIElement from "./BaseUIElement" | ||||||
| 
 | 
 | ||||||
|  | /** | ||||||
|  |  * @deprecated | ||||||
|  |  */ | ||||||
| export abstract class UIElement extends BaseUIElement { | export abstract class UIElement extends BaseUIElement { | ||||||
|     /** |     /** | ||||||
|      * Should be overridden for specific HTML functionality |      * Should be overridden for specific HTML functionality | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue