1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-09 08:45:55 +02:00
joplin/packages/lib/SyncTargetNone.ts

32 lines
588 B
TypeScript
Raw Normal View History

import { _ } from './locale.js';
import BaseSyncTarget from './BaseSyncTarget';
import { FileApi } from './file-api';
export default class SyncTargetNone extends BaseSyncTarget {
public static id() {
return 0;
}
public static targetName() {
return 'none';
}
public static label() {
return _('(None)');
}
public async fileApi(): Promise<FileApi> {
return null;
}
protected async initFileApi() {
}
protected async initSynchronizer() {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
return null as any;
}
}