🎨 Improve file download and typescript annotations

This commit is contained in:
C-3PO 2018-06-21 21:26:29 +02:00
parent b502075cb3
commit 8424ae8978
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
5 changed files with 53 additions and 65 deletions

View file

@ -0,0 +1,11 @@
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_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 };