runAsync method ✓ 100.0%

Last updated: 2026-03-01T23:25:47.106Z

Metrics

LOC: 7 Complexity: 2 Params: 1 Coverage: 100.0% (4/4 lines, 5x executed)

Signature

runAsync(fields: FormField[]): : Promise<FormField[]>

Summary

Async run — awaits every classifier (including Chrome AI) per field, then returns all fields at once.

Source Code

  async runAsync(fields: FormField[]): Promise<FormField[]> {
    const pipeline = new DetectionPipeline(this._classifiers);
    for (const field of fields) {
      this.applyResult(field, await pipeline.runAsync(field));
    }
    return fields;
  }

Dependencies (Outgoing)

graph LR runAsync["runAsync"] DetectionPipeline["DetectionPipeline"] runAsync -.->|instantiates| DetectionPipeline style runAsync fill:#dbeafe,stroke:#2563eb,stroke-width:2px click runAsync "9fb910953d2bd7ba.html" click DetectionPipeline "c51ffbb1759babe9.html"
TargetType
DetectionPipeline instantiates

No incoming dependencies.