1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +02:00

Chore: Mobile: Improve Notes screen type safety (#11093)

This commit is contained in:
Henry Heino
2024-09-21 04:57:38 -07:00
committed by GitHub
parent b9dc226031
commit 8c4bf057d6
4 changed files with 114 additions and 84 deletions

View File

@ -24,11 +24,13 @@ const { isImageMimeType } = require('../resourceUtils');
const { MarkupToHtml } = require('@joplin/renderer');
const { ALL_NOTES_FILTER_ID } = require('../reserved-ids');
export interface PreviewsOrder {
by: string;
dir: string;
}
interface PreviewsOptions {
order?: {
by: string;
dir: string;
}[];
order?: PreviewsOrder[];
conditions?: string[];
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
conditionsParams?: any[];