Move types to other files

This commit is contained in:
Matthias 2020-08-29 11:35:42 +02:00
parent 3aba82f917
commit 69fd6c81d8
4 changed files with 27 additions and 28 deletions

10
src/types/blacklist.d.ts vendored Normal file
View File

@ -0,0 +1,10 @@
export interface BlacklistPayload {
blacklist: Array<string>;
}
export interface BlacklistResponse {
method: Array<string>;
length: number;
blacklist: Array<string>;
errors: Record<string, string>;
}

15
src/types/daily.d.ts vendored Normal file
View File

@ -0,0 +1,15 @@
export interface DailyPayload {
timescale?: number;
}
export interface DailyRecord {
/** Date in the format yyyy-mm-dd */
date: string;
abs_profit: number;
fiat_value: number;
trade_count: number;
}
export interface DailyReturnValue {
data: Array<DailyRecord>;
}

View File

@ -1,4 +1,5 @@
export * from './auth.d';
export * from './blacklist.d';
export * from './chart.d';
export * from './daily.d';
export * from './types.d';

27
src/types/types.d.ts vendored
View File

@ -1,30 +1,3 @@
export interface BlacklistPayload {
blacklist: Array<string>;
}
export interface BlacklistResponse {
method: Array<string>;
length: number;
blacklist: Array<string>;
errors: Record<string, string>;
}
export interface DailyPayload {
timescale?: number;
}
export interface DailyRecord {
/** Date in the format yyyy-mm-dd */
date: string;
abs_profit: number;
fiat_value: number;
trade_count: number;
}
export interface DailyReturnValue {
data: Array<DailyRecord>;
}
export interface ForcebuyPayload {
pair: string;
price?: number;