Deduplicate TimeRange type in frontend type definitions

This commit is contained in:
2026-04-19 18:21:51 +02:00
parent 09a1d3c7b7
commit e6ee525e0f
2 changed files with 6 additions and 2 deletions

View File

@@ -2,8 +2,10 @@
* TypeScript types for the ban history API.
*/
import type { TimeRange } from "./ban";
/** Optional time-range filter for history queries. */
export type TimeRange = "24h" | "7d" | "30d" | "365d";
export type { TimeRange };
/** A single row in the history ban-list table. */
export interface HistoryBanItem {

View File

@@ -2,8 +2,10 @@
* TypeScript types for the world-map / bans-by-country API.
*/
import type { TimeRange } from "./ban";
/** Time-range preset for filtering queries. */
export type TimeRange = "24h" | "7d" | "30d" | "365d";
export type { TimeRange };
/** A single enriched ban item as returned by the by-country endpoint. */
export interface MapBanItem {