UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

16 lines 249 B
/** * Given an enum * ```ts * enum A { * a = "a", * b = "b" * } * ``` * returns * ```ts * { a: 0, * b: 1 } * ``` */ export declare function enumToIndexMap<T>(enumVar: T): Record<keyof T, number>; //# sourceMappingURL=enum.d.ts.map