mirror of
https://github.com/zoriya/flood.git
synced 2026-06-03 19:21:48 +00:00
docs: improve documentation of delete torrents API
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import {TorrentProperties} from './Torrent';
|
||||
|
||||
export interface AddTorrentByURLOptions {
|
||||
urls: Array<string>;
|
||||
destination: string;
|
||||
@@ -14,3 +16,10 @@ export interface MoveTorrentsOptions {
|
||||
moveFiles: boolean;
|
||||
isCheckHash: boolean;
|
||||
}
|
||||
|
||||
export interface DeleteTorrentsOptions {
|
||||
// An array of string representing hashes of torrents to be removed
|
||||
hashes: Array<TorrentProperties['hash']>;
|
||||
// Whether to delete data of torrents
|
||||
deleteData?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user