Finished migrating remaining reducers to TS

This commit is contained in:
Alejandro Celaya
2020-08-28 18:33:37 +02:00
parent 54290d4c9a
commit dcf72e6818
11 changed files with 274 additions and 141 deletions

View File

@@ -1,3 +1,5 @@
import { Visit } from '../../visits/types'; // FIXME Should be defined here
export interface ShlinkMercureInfo {
token: string;
mercureHubUrl: string;
@@ -16,7 +18,17 @@ interface ShlinkTagsStats {
export interface ShlinkTags {
tags: string[];
stats?: ShlinkTagsStats[];
stats?: ShlinkTagsStats[]; // TODO Is only optional in old versions
}
export interface ShlinkPaginator {
currentPage: number;
pagesCount: number;
}
export interface ShlinkVisits {
data: Visit[];
pagination?: ShlinkPaginator; // TODO Is only optional in old versions
}
export interface ProblemDetailsError {