From f5749b2b8ad31f7a2f28b0197a182e82e3abef62 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Wed, 15 Jan 2025 18:44:48 +0000 Subject: [PATCH] Update return type --- packages/beacon-node/src/util/sszBytes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/beacon-node/src/util/sszBytes.ts b/packages/beacon-node/src/util/sszBytes.ts index 77e4a562e7e..13ce4c417ee 100644 --- a/packages/beacon-node/src/util/sszBytes.ts +++ b/packages/beacon-node/src/util/sszBytes.ts @@ -407,7 +407,7 @@ function getSlotFromOffset(data: Uint8Array, offset: number): Slot | null { /** * Alias of `getSlotFromOffset` for readability */ -function getIndexFromOffset(data: Uint8Array, offset: number): ValidatorIndex | CommitteeIndex | null { +function getIndexFromOffset(data: Uint8Array, offset: number): (ValidatorIndex | CommitteeIndex) | null { return getSlotFromOffset(data, offset); }