You've already forked joplin
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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user