mirror of
https://github.com/skidoodle/hostinfo
synced 2025-03-16 13:59:38 +01:00
25 lines
439 B
TypeScript
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;
|
|
}
|