1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Tools: Apply rule @typescript-eslint/type-annotation-spacing

This commit is contained in:
Laurent Cozic
2020-11-12 19:13:28 +00:00
parent 62feb7ff60
commit d20694e52c
291 changed files with 2205 additions and 2203 deletions

View File

@@ -4,7 +4,7 @@ const { basename } = require('../../path-utils');
const shim = require('../../shim').default;
export default class InteropService_Exporter_Raw extends InteropService_Exporter_Base {
async init(destDir:string) {
async init(destDir: string) {
this.destDir_ = destDir;
this.resourceDir_ = destDir ? `${destDir}/resources` : null;
@@ -12,14 +12,14 @@ export default class InteropService_Exporter_Raw extends InteropService_Exporter
await shim.fsDriver().mkdir(this.resourceDir_);
}
async processItem(itemType:number, item:any) {
async processItem(itemType: number, item: any) {
const ItemClass = BaseItem.getClassByItemType(itemType);
const serialized = await ItemClass.serialize(item);
const filePath = `${this.destDir_}/${ItemClass.systemPath(item)}`;
await shim.fsDriver().writeFile(filePath, serialized, 'utf-8');
}
async processResource(_resource:any, filePath:string) {
async processResource(_resource: any, filePath: string) {
const destResourcePath = `${this.resourceDir_}/${basename(filePath)}`;
await shim.fsDriver().copy(filePath, destResourcePath);
}