🗑️ Remove unused ISettings interface

This commit is contained in:
C-3PO 2018-11-02 02:34:29 +01:00
parent 78bda898f9
commit bb57e99d04
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
12 changed files with 35 additions and 22 deletions

View file

@ -1,11 +0,0 @@
type Product = 'assets_swtor_de_de' | 'assets_swtor_en_us' | 'assets_swtor_fr_fr' | 'assets_swtor_main' | 'assets_swtor_test_de_de' | 'assets_swtor_test_en_us' | 'assets_swtor_test_fr_fr' | 'assets_swtor_test_main' | 'eualas' | 'movies_de_de' | 'movies_en_us' | 'movies_fr_fr' | 'patcher2014' | 'patcher2017' | 'retailclient_betatest' | 'retailclient_cstraining' | 'retailclient_liveeptest' | 'retailclient_liveqatest' | 'retailclient_publictest' | 'retailclient_squadron157' | 'retailclient_swtor';
interface ISettings {
[key: string]: any;
product?: Product;
release?: number; //TODO: allow 'current', but how will we know what current version is?
from?: number;
outputType?: 'info' | 'file'; //whether to just show JSON information, or actually write files into a directory
}
export { ISettings, Product };

View file

@ -5,7 +5,7 @@ interface ISolidFile {
path: [string];
}
interface ISolidFileInfo {
interface ISolidInfo {
/** List of files that are part of this torrent. */
files: ISolidFile[];
/** Length of one piece in bytes, i.e. 64 KiB, 128 KiB, 256 KiB, 512 KiB, 1 MiB, 2MiB or 4 MiB */
@ -34,7 +34,7 @@ interface ISolid {
/** Integer in the range 0-3 */
'reliable-id': '0' | '1' | '2' | '3';
/** Contains further information about this torrent, including the list of files. */
info: ISolidFileInfo;
info: ISolidInfo;
}
export default ISolid;

24
src/interfaces/Product.ts Normal file
View file

@ -0,0 +1,24 @@
type Product =
'assets_swtor_de_de' |
'assets_swtor_en_us' |
'assets_swtor_fr_fr' |
'assets_swtor_main' |
'assets_swtor_test_de_de' |
'assets_swtor_test_en_us' |
'assets_swtor_test_fr_fr' |
'assets_swtor_test_main' |
'eualas' |
'movies_de_de' |
'movies_en_us' |
'movies_fr_fr' |
'patcher2014' |
'patcher2017' |
'retailclient_betatest' |
'retailclient_cstraining' |
'retailclient_liveeptest' |
'retailclient_liveqatest' |
'retailclient_publictest' |
'retailclient_squadron157' |
'retailclient_swtor';
export default Product;