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

All: Resolves #483: Add trash folder (#9671)

This commit is contained in:
Laurent Cozic
2024-03-02 14:25:27 +00:00
committed by GitHub
parent 07fbd547dc
commit f19b1c5364
112 changed files with 2322 additions and 966 deletions

View File

@ -3,6 +3,7 @@ import { fileApi } from '../testing/../testing/test-utils';
import Folder from '../models/Folder';
import Note from '../models/Note';
import BaseItem from '../models/BaseItem';
import { FolderEntity, NoteEntity } from '../services/database/types';
export async function allNotesFolders() {
const folders = await Folder.all();
@ -25,7 +26,7 @@ async function remoteItemsByTypes(types: number[]) {
return output;
}
export async function remoteNotesAndFolders() {
export async function remoteNotesAndFolders(): Promise<(NoteEntity | FolderEntity)[]> {
return remoteItemsByTypes([BaseModel.TYPE_NOTE, BaseModel.TYPE_FOLDER]);
}