Typehinting the router