1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +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

@ -3,18 +3,18 @@ import shim from '../../shim';
export default class KeychainServiceDriver extends KeychainServiceDriverBase {
async setPassword(name: string, password: string): Promise<boolean> {
public async setPassword(name: string, password: string): Promise<boolean> {
if (!shim.keytar()) return false;
await shim.keytar().setPassword(`${this.appId}.${name}`, `${this.clientId}@joplin`, password);
return true;
}
async password(name: string): Promise<string> {
public async password(name: string): Promise<string> {
if (!shim.keytar()) return null;
return shim.keytar().getPassword(`${this.appId}.${name}`, `${this.clientId}@joplin`);
}
async deletePassword(name: string): Promise<void> {
public async deletePassword(name: string): Promise<void> {
if (!shim.keytar()) return;
await shim.keytar().deletePassword(`${this.appId}.${name}`, `${this.clientId}@joplin`);
}