Instance Method eraseToAnyRouter() Deprecated This method is no longer useful in Swift 5.7 Wraps this router with a type eraser. func eraseToAnyRouter() -> AnyRouter<Self.Output>