docs: correct the type of `server.middlewareMode` (#23222)