mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 09:45:29 +00:00
15 lines
303 B
TypeScript
15 lines
303 B
TypeScript
import type { Tld} from './index'
|
|
import {request} from './index'
|
|
|
|
interface TldList {
|
|
'hydra:totalItems': number
|
|
'hydra:member': Tld[]
|
|
}
|
|
|
|
export async function getTldList(params: object): Promise<TldList> {
|
|
return (await request<TldList>({
|
|
url: 'tld',
|
|
params
|
|
})).data
|
|
}
|