1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-06 23:56:13 +02:00

Tools: Add class member accessibility modifiers and converted rule @typescript-eslint/explicit-member-accessibility to an error

This commit is contained in:
Laurent Cozic
2023-03-06 14:22:01 +00:00
parent aa4af69afc
commit c1db7182ac
129 changed files with 1252 additions and 1296 deletions

View File

@ -2,16 +2,16 @@ import Logger from '../Logger';
export default class BaseService {
static logger_: Logger = null;
public static logger_: Logger = null;
protected instanceLogger_: Logger = null;
logger(): Logger {
public logger(): Logger {
if (this.instanceLogger_) return this.instanceLogger_;
if (!BaseService.logger_) throw new Error('BaseService.logger_ not set!!');
return BaseService.logger_;
}
setLogger(v: Logger) {
public setLogger(v: Logger) {
this.instanceLogger_ = v;
}
}