Add type hinting for a directly injected service

This PR adds type hinting for directly injected `templating` dependency.