Hooks service

Is specifying the type of the local variable needed?