import { Dcomm } from "dcomm/dist" import { HealthAPI } from "dcomm/dist/apis/health" import { HealthResponse } from "dcomm/dist/apis/health/interfaces" const ip: string = "localhost" const port: number = 9650 const protocol: string = "http" const networkID: number = 1337 const dcomm: Dcomm = new Dcomm(ip, port, protocol, networkID) const health: HealthAPI = dcomm.Health() const main = async (): Promise => { const healthResponse: HealthResponse = await health.health() console.log(healthResponse) } main()