Skip to content

Commit

Permalink
Change EventType to normal enum (#5042)
Browse files Browse the repository at this point in the history
Const enums are completely removed during compilation which means that
they do not exist at runtime and can not be used outside of the library.
  • Loading branch information
nflaig authored Jan 23, 2023
1 parent 2fb24c1 commit b84c234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/beacon/routes/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {ApiClientResponse} from "../../interfaces.js";

// See /packages/api/src/routes/index.ts for reasoning and instructions to add new routes

export const enum EventType {
export enum EventType {
/**
* The node has finished processing, resulting in a new head. previous_duty_dependent_root is
* `get_block_root_at_slot(state, compute_start_slot_at_epoch(epoch - 1) - 1)` and
Expand Down

0 comments on commit b84c234

Please sign in to comment.