hostinfo/utils/model.ts
2025-03-15 19:41:30 +01:00

25 lines
439 B
TypeScript

export interface ServerData {
origin: string
ip: string
hostname: string | null
country: string | null
city: string | null
org: string
isLocal?: boolean
isBrowserResource?: boolean
}
export interface DNSEntry {
type: number
data: string
}
export interface FetchServerInfoRequest {
type: 'FETCH_SERVER_INFO';
hostname: string;
}
export interface FetchServerInfoResponse {
error?: string;
data?: ServerData;
}