From ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:26:15 +0800
Subject: [PATCH] TODO#139888 嚴選配對 - 文案修改

---
 PAMapp/node_modules/@types/body-parser/index.d.ts |   57 ++++++++++++++++++++++++++++++---------------------------
 1 files changed, 30 insertions(+), 27 deletions(-)

diff --git a/PAMapp/node_modules/@types/body-parser/index.d.ts b/PAMapp/node_modules/@types/body-parser/index.d.ts
index d767cf3..4be0396 100755
--- a/PAMapp/node_modules/@types/body-parser/index.d.ts
+++ b/PAMapp/node_modules/@types/body-parser/index.d.ts
@@ -16,12 +16,35 @@
 
 // for docs go to https://github.com/expressjs/body-parser/tree/1.19.0#body-parser
 
-/** @deprecated */
-declare function bodyParser(
-    options?: bodyParser.OptionsJson & bodyParser.OptionsText & bodyParser.OptionsUrlencoded,
-): NextHandleFunction;
-
 declare namespace bodyParser {
+    interface BodyParser {
+        /**
+         * @deprecated  use individual json/urlencoded middlewares
+         */
+        (options?: OptionsJson & OptionsText & OptionsUrlencoded): NextHandleFunction;
+        /**
+         * Returns middleware that only parses json and only looks at requests
+         * where the Content-Type header matches the type option.
+         */
+        json(options?: OptionsJson): NextHandleFunction;
+        /**
+         * Returns middleware that parses all bodies as a Buffer and only looks at requests
+         * where the Content-Type header matches the type option.
+         */
+        raw(options?: Options): NextHandleFunction;
+
+        /**
+         * Returns middleware that parses all bodies as a string and only looks at requests
+         * where the Content-Type header matches the type option.
+         */
+        text(options?: OptionsText): NextHandleFunction;
+        /**
+         * Returns middleware that only parses urlencoded bodies and only looks at requests
+         * where the Content-Type header matches the type option
+         */
+        urlencoded(options?: OptionsUrlencoded): NextHandleFunction;
+    }
+
     interface Options {
         /** When set to true, then deflated (compressed) bodies will be inflated; when false, deflated bodies are rejected. Defaults to true. */
         inflate?: boolean | undefined;
@@ -77,28 +100,8 @@
          */
         parameterLimit?: number | undefined;
     }
-
-    /**
-     * Returns middleware that only parses json and only looks at requests
-     * where the Content-Type header matches the type option.
-     */
-    function json(options?: OptionsJson): NextHandleFunction;
-    /**
-     * Returns middleware that parses all bodies as a Buffer and only looks at requests
-     * where the Content-Type header matches the type option.
-     */
-    function raw(options?: Options): NextHandleFunction;
-
-    /**
-     * Returns middleware that parses all bodies as a string and only looks at requests
-     * where the Content-Type header matches the type option.
-     */
-    function text(options?: OptionsText): NextHandleFunction;
-    /**
-     * Returns middleware that only parses urlencoded bodies and only looks at requests
-     * where the Content-Type header matches the type option
-     */
-    function urlencoded(options?: OptionsUrlencoded): NextHandleFunction;
 }
 
+declare const bodyParser: bodyParser.BodyParser;
+
 export = bodyParser;

--
Gitblit v1.8.0