소스 검색

docs: debouncer docs & rename usage to signature

Sv443 3 달 전
부모
커밋
2fd60a9d20
2개의 변경된 파일292개의 추가작업 그리고 135개의 파일을 삭제
  1. 290 133
      README.md
  2. 2 2
      lib/Debouncer.ts

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 290 - 133
README.md


+ 2 - 2
lib/Debouncer.ts

@@ -62,7 +62,7 @@ export class Debouncer<TArgs> extends NanoEmitter<DebouncerEventMap<TArgs>> {
 
   /** Adds a listener function that will be called on timeout */
   public addListener(fn: DebouncerFunc<TArgs>) {
-    return this.listeners.push(fn);
+    this.listeners.push(fn);
   }
 
   /** Removes the listener with the specified function reference */
@@ -90,7 +90,7 @@ export class Debouncer<TArgs> extends NanoEmitter<DebouncerEventMap<TArgs>> {
 
   /** Whether the timeout is currently active, meaning any latest call to the {@linkcode call()} method will be queued */
   public isTimeoutActive() {
-    return this.activeTimeout;
+    return typeof this.activeTimeout !== "undefined";
   }
 
   //#region type

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.