1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Chore: Migrate file system sync to TypeScript (#10361)

This commit is contained in:
Henry Heino
2024-04-25 05:31:48 -07:00
committed by GitHub
parent c7c4371902
commit 83b50aaa8e
15 changed files with 124 additions and 84 deletions

View File

@@ -1,6 +1,7 @@
import * as React from 'react';
import { NoteEntity, ResourceEntity } from './services/database/types';
import type FsDriverBase from './fs-driver-base';
import type FileApiDriverLocal from './file-api-driver-local';
export interface CreateResourceFromPathOptions {
resizeLargeImages?: 'always' | 'never' | 'ask';
@@ -260,8 +261,7 @@ const shim = {
throw new Error('Not implemented: fsDriver');
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
FileApiDriverLocal: null as any,
FileApiDriverLocal: null as typeof FileApiDriverLocal,
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
readLocalFileBase64: (_path: string): any => {