Changed the router typehint to use the interface