Skip to content

Commit

Permalink
revert lint move contents to .d.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
jamszh committed Sep 10, 2021
1 parent f499a3a commit 0d2fcb5
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 39 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"sourceType": "module"
},
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-namespace": "off"
"@typescript-eslint/camelcase": "off"
}
}
37 changes: 36 additions & 1 deletion types/api/reporting.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
export declare namespace Reporting {}
export namespace Reporting {
interface OrderStatsResponse {
message: string;
status: number;
result: OrderResult;
}

interface OrderResult {
[region: string]: OrderStats;
}

interface OrderStats {
period: {
from: string;
to: string;
};
min: number;
count: number;
is_popular: boolean;
}

interface OfferStatsResponse {
message: string;
status: number;
result: OfferResult;
}

type OfferResult = Array<OfferStats>;

interface OfferStats {
total_purchase: string;
offer_id: string;
page_views: string | null;
region: string;
}
}
36 changes: 0 additions & 36 deletions types/api/reporting.ts

This file was deleted.

0 comments on commit 0d2fcb5

Please sign in to comment.