Solución
solution.tsTypeScript
class AppConfig {
static readonly APP_NAME = "MiApp";
static readonly VERSION = "1.0.0";
static readonly MAX_RETRIES = 3;
static describe() {
return `${this.APP_NAME} v${this.VERSION} (max retries: ${this.MAX_RETRIES})`
}
}
export function getAppInfo(): string {
return AppConfig.describe();
}0respuestas