@nospamproxy/core
    Preparing search index...
    • Debounces an async validation function

      • This pretends, that validation was successful if another validation attempt is started during the initial delay.

      Type Parameters

      • TArgs extends unknown[]

      Parameters

      • validate: (...args: TArgs) => Promise<boolean>
      • delay: number = 300

      Returns (...args: TArgs) => Promise<boolean>