mirror of
https://github.com/skidoodle/hostinfo
synced 2026-04-28 09:37:37 +02:00
26 lines
435 B
TypeScript
26 lines
435 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
|
|
}
|