Late to the party, but the best type (especially since the type is opaque, we only care that we can pass it to clearInterval()
later) might be the automatically deduced one, ie. something like:
ReturnType<typeof setInterval>
Late to the party, but the best type (especially since the type is opaque, we only care that we can pass it to clearInterval()
later) might be the automatically deduced one, ie. something like:
ReturnType<typeof setInterval>