Remove redundant type

This commit is contained in:
Alejandro Celaya 2023-03-19 11:50:06 +01:00
parent 43b2926063
commit cf27de965e
2 changed files with 3 additions and 7 deletions

View file

@ -18,7 +18,7 @@ export interface ShlinkHealth {
version: string; version: string;
} }
interface ShlinkTagsStats { export interface ShlinkTagsStats {
tag: string; tag: string;
shortUrlsCount: number; shortUrlsCount: number;
visitsSummary?: ShlinkVisitsSummary; // Optional only before Shlink 3.5.0 visitsSummary?: ShlinkVisitsSummary; // Optional only before Shlink 3.5.0

View file

@ -1,10 +1,6 @@
import type { ShlinkVisitsSummary } from '../../api/types'; import type { ShlinkTagsStats } from '../../api/types';
export interface TagStats { export type TagStats = Omit<ShlinkTagsStats, 'tag'>;
shortUrlsCount: number;
visitsCount: number;
visitsSummary?: ShlinkVisitsSummary; // Optional only before Shlink 3.5.0
}
export interface TagModalProps { export interface TagModalProps {
tag: string; tag: string;