From 69fd6c81d85bd6a1af6459286a7db9a644291c9c Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 29 Aug 2020 11:35:42 +0200 Subject: [PATCH] Move types to other files --- src/types/blacklist.d.ts | 10 ++++++++++ src/types/daily.d.ts | 15 +++++++++++++++ src/types/index.ts | 3 ++- src/types/types.d.ts | 27 --------------------------- 4 files changed, 27 insertions(+), 28 deletions(-) create mode 100644 src/types/blacklist.d.ts create mode 100644 src/types/daily.d.ts diff --git a/src/types/blacklist.d.ts b/src/types/blacklist.d.ts new file mode 100644 index 00000000..e21e9bf6 --- /dev/null +++ b/src/types/blacklist.d.ts @@ -0,0 +1,10 @@ +export interface BlacklistPayload { + blacklist: Array; +} + +export interface BlacklistResponse { + method: Array; + length: number; + blacklist: Array; + errors: Record; +} diff --git a/src/types/daily.d.ts b/src/types/daily.d.ts new file mode 100644 index 00000000..3bd2a2b7 --- /dev/null +++ b/src/types/daily.d.ts @@ -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; +} diff --git a/src/types/index.ts b/src/types/index.ts index d97e095c..333aef62 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,4 +1,5 @@ export * from './auth.d'; +export * from './blacklist.d'; export * from './chart.d'; - +export * from './daily.d'; export * from './types.d'; diff --git a/src/types/types.d.ts b/src/types/types.d.ts index d302fc86..5154696a 100644 --- a/src/types/types.d.ts +++ b/src/types/types.d.ts @@ -1,30 +1,3 @@ -export interface BlacklistPayload { - blacklist: Array; -} - -export interface BlacklistResponse { - method: Array; - length: number; - blacklist: Array; - errors: Record; -} - -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; -} - export interface ForcebuyPayload { pair: string; price?: number;