UNPKG

@lodestar/api

Version:

A Typescript REST client for the Ethereum Consensus API

23 lines 640 B
import { MediaType } from "./headers.js"; export var WireFormat; (function (WireFormat) { WireFormat["json"] = "json"; WireFormat["ssz"] = "ssz"; })(WireFormat || (WireFormat = {})); export function getWireFormat(mediaType) { switch (mediaType) { case MediaType.json: return WireFormat.json; case MediaType.ssz: return WireFormat.ssz; } } export function fromWireFormat(wireFormat) { switch (wireFormat) { case WireFormat.json: return MediaType.json; case WireFormat.ssz: return MediaType.ssz; } } //# sourceMappingURL=wireFormat.js.map