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;