import * as IO from "fp-ts/IO"; import type { Publisher } from "./publisher"; import { readFileSync } from "fs"; export interface Config { result_publishers: Publisher[]; dns: string[]; timeout: string; } export const readConfig = (filePath: string): IO.IO => () => { const confStr = readFileSync(filePath, "utf-8"); return JSON.parse(confStr); };