import { probe as promiseProbe } from "./ping-promise"; import { probe as callbackProbe } from "./ping-sys"; import { PingResponse } from "./parser/base"; import { expectType } from "tsd"; import { PingConfig } from "."; const pingConfig: PingConfig = { numeric: true, timeout: 10, }; expectType>(promiseProbe('localhost', pingConfig)); expectType>(callbackProbe('localhost', (response, error) => { expectType(response); expectType(error); }, pingConfig)); // just to make sure types are exported correctly expectType(pingConfig);