RSE/frontend/types/global.d.ts
2025-01-16 11:10:43 +01:00

29 lines
548 B
TypeScript

interface ProgressType {
percentageOfIpv4Scanned: number; // assuming this is a number
totalFiltered: bigint;
amountOfIpv4Left: bigint;
totalDiscarded: bigint;
discardedDbSize: bigint;
filteredDbSize: bigint;
myDbSize: bigint;
};
interface ProgressDictionary {
description: string;
value: string;
};
interface SearchResult {
title: string;
description: string;
url: string;
};
interface SearchResults {
results: SearchResult[];
};
type CacheEntry<T> = {
data: T;
timestamp: number;
};