Refactoring: add deprecation warnings

This commit is contained in:
Pieter Vander Vennet 2023-10-30 14:35:00 +01:00
parent d749b5c68f
commit df82c17cc1
2 changed files with 4 additions and 1 deletions

View file

@ -4,7 +4,7 @@ function genImages(dryrun = false) {
const dir = fs.readdirSync("./assets/svg")
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[] = []
for (const path of dir) {
if (path.endsWith("license_info.json")) {

View file

@ -1,5 +1,8 @@
import BaseUIElement from "./BaseUIElement"
/**
* @deprecated
*/
export abstract class UIElement extends BaseUIElement {
/**
* Should be overridden for specific HTML functionality