As far as typescript goes, don’t use Function but instead define the signature of the function
(value: number) => void
. Again, not a huge problem, just an improvement. I suspect the downvote came from someone who thought this was an opinion based question and belonged on a code review site, as you have no specific problem you’re asking for help with —
Adam Jenkins 17 secs ago