UNPKG

@lodestar/prover

Version:

A Typescript implementation of the Ethereum Consensus light client

8 lines 381 B
/** * Read a JSON serializable object from a file * * Parse either from json, yaml, or toml * Optional acceptedFormats object can be passed which can be an array of accepted formats, in future can be extended to include parseFn for the accepted formats */ export declare function readFile<T>(filepath: string, acceptedFormats?: string[]): T; //# sourceMappingURL=file.d.ts.map