Deduplicate TimeRange type in frontend type definitions
This commit is contained in:
@@ -2,8 +2,10 @@
|
|||||||
* TypeScript types for the ban history API.
|
* TypeScript types for the ban history API.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import type { TimeRange } from "./ban";
|
||||||
|
|
||||||
/** Optional time-range filter for history queries. */
|
/** 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. */
|
/** A single row in the history ban-list table. */
|
||||||
export interface HistoryBanItem {
|
export interface HistoryBanItem {
|
||||||
|
|||||||
@@ -2,8 +2,10 @@
|
|||||||
* TypeScript types for the world-map / bans-by-country API.
|
* TypeScript types for the world-map / bans-by-country API.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import type { TimeRange } from "./ban";
|
||||||
|
|
||||||
/** Time-range preset for filtering queries. */
|
/** 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. */
|
/** A single enriched ban item as returned by the by-country endpoint. */
|
||||||
export interface MapBanItem {
|
export interface MapBanItem {
|
||||||
|
|||||||
Reference in New Issue
Block a user