From 26a09f08cf1ed43c640879f23fdad56c5c9282f7 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:02:38 +0800
Subject: [PATCH] TODO#139884 Banner 1 文案調整

---
 PAMapp/node_modules/@types/lodash/common/function.d.ts |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/PAMapp/node_modules/@types/lodash/common/function.d.ts b/PAMapp/node_modules/@types/lodash/common/function.d.ts
index f4866ff..7628278 100755
--- a/PAMapp/node_modules/@types/lodash/common/function.d.ts
+++ b/PAMapp/node_modules/@types/lodash/common/function.d.ts
@@ -368,6 +368,9 @@
          */
         trailing?: boolean | undefined;
     }
+    interface DebounceSettingsLeading extends DebounceSettings {
+        leading: true;
+    }
     interface DebouncedFunc<T extends (...args: any[]) => any> {
         /**
          * Call the original function, but applying the debounce rules.
@@ -394,6 +397,10 @@
          */
         flush(): ReturnType<T> | undefined;
     }
+    interface DebouncedFuncLeading<T extends (...args: any[]) => any> extends DebouncedFunc<T> {
+        (...args: Parameters<T>): ReturnType<T>;
+        flush(): ReturnType<T>;
+    }
     interface LoDashStatic {
         /**
          * Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since
@@ -415,12 +422,17 @@
          * @param options.trailing Specify invoking on the trailing edge of the timeout.
          * @return Returns the new debounced function.
          */
+        debounce<T extends (...args: any) => any>(func: T, wait: number | undefined, options: DebounceSettingsLeading): DebouncedFuncLeading<T>;
         debounce<T extends (...args: any) => any>(func: T, wait?: number, options?: DebounceSettings): DebouncedFunc<T>;
     }
     interface Function<T extends (...args: any) => any> {
         /**
          * @see _.debounce
          */
+        debounce(
+            wait: number | undefined,
+            options: DebounceSettingsLeading
+        ): T extends (...args: any[]) => any ? Function<DebouncedFuncLeading<T>> : never;
         debounce(
             wait?: number,
             options?: DebounceSettings
@@ -431,6 +443,10 @@
          * @see _.debounce
          */
         debounce(
+            wait: number | undefined,
+            options: DebounceSettingsLeading
+        ): T extends (...args: any[]) => any ? FunctionChain<DebouncedFuncLeading<T>> : never;
+        debounce(
             wait?: number,
             options?: DebounceSettings
         ): T extends (...args: any[]) => any ? FunctionChain<DebouncedFunc<T>> : never;

--
Gitblit v1.8.0