Skip to content

Commit

Permalink
Update return type
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jan 15, 2025
1 parent dd9fc3e commit f5749b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/util/sszBytes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f5749b2

Please sign in to comment.