diff --git a/docs/Configuration.md b/docs/Configuration.md
index 7b145550d1..669ead15b5 100644
--- a/docs/Configuration.md
+++ b/docs/Configuration.md
@@ -605,7 +605,7 @@ Type: `boolean`
Whether we should enable CMD+R hotkey for refreshing the bundle.
-#### `enhanceMiddleware`
+#### `enhanceMiddleware`
Deprecated
Type: `(Middleware, MetroServer) => Middleware`
diff --git a/packages/metro-config/src/configTypes.flow.js b/packages/metro-config/src/configTypes.flow.js
index 9238bf4358..29542dd352 100644
--- a/packages/metro-config/src/configTypes.flow.js
+++ b/packages/metro-config/src/configTypes.flow.js
@@ -164,6 +164,7 @@ type MetalConfigT = {
};
type ServerConfigT = {
+ /** @deprecated */
enhanceMiddleware: (Middleware, MetroServer) => Middleware | Server,
port: number,
rewriteRequestUrl: string => string,
diff --git a/packages/metro-config/types/configTypes.d.ts b/packages/metro-config/types/configTypes.d.ts
index 2cfbf983bc..c4a89aabdf 100644
--- a/packages/metro-config/types/configTypes.d.ts
+++ b/packages/metro-config/types/configTypes.d.ts
@@ -159,6 +159,7 @@ export interface MetalConfigT {
}
export interface ServerConfigT {
+ /** @deprecated */
enhanceMiddleware: (
metroMiddleware: Middleware,
metroServer: MetroServer,