You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
@@ -40,6 +40,15 @@ export interface DeleteOptions {
|
||||
trackDeleted?: boolean;
|
||||
|
||||
disableReadOnlyCheck?: boolean;
|
||||
|
||||
// Tells whether the deleted item should be moved to the trash. By default
|
||||
// it is permanently deleted.
|
||||
toTrash?: boolean;
|
||||
|
||||
// If the item is to be moved to the trash, tell what should be the new
|
||||
// parent. By default the item will be moved at the root of the trash. Note
|
||||
// that caller must ensure that this parent ID is a deleted folder.
|
||||
toTrashParentId?: string;
|
||||
}
|
||||
|
||||
class BaseModel {
|
||||
@@ -308,7 +317,7 @@ class BaseModel {
|
||||
return this.modelSelectAll(q.sql, q.params);
|
||||
}
|
||||
|
||||
public static async byIds(ids: string[], options: any = null) {
|
||||
public static async byIds(ids: string[], options: LoadOptions = null) {
|
||||
if (!ids.length) return [];
|
||||
if (!options) options = {};
|
||||
if (!options.fields) options.fields = '*';
|
||||
|
||||
Reference in New Issue
Block a user