From cf27de965ecce24e80346259b6b5d71894a74f05 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 19 Mar 2023 11:50:06 +0100 Subject: [PATCH] Remove redundant type --- src/api/types/index.ts | 2 +- src/tags/data/index.ts | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/api/types/index.ts b/src/api/types/index.ts index e97dddee..06473dff 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -18,7 +18,7 @@ export interface ShlinkHealth { version: string; } -interface ShlinkTagsStats { +export interface ShlinkTagsStats { tag: string; shortUrlsCount: number; visitsSummary?: ShlinkVisitsSummary; // Optional only before Shlink 3.5.0 diff --git a/src/tags/data/index.ts b/src/tags/data/index.ts index acc59a5b..744fcd47 100644 --- a/src/tags/data/index.ts +++ b/src/tags/data/index.ts @@ -1,10 +1,6 @@ -import type { ShlinkVisitsSummary } from '../../api/types'; +import type { ShlinkTagsStats } from '../../api/types'; -export interface TagStats { - shortUrlsCount: number; - visitsCount: number; - visitsSummary?: ShlinkVisitsSummary; // Optional only before Shlink 3.5.0 -} +export type TagStats = Omit; export interface TagModalProps { tag: string;