withOrder method ✓ 100.0%
Last updated: 2026-03-01T23:35:47.796Z
Metrics
LOC: 6
Complexity: 1
Params: 1
Coverage: 100.0% (4/4 lines, 3x executed)
Signature
withOrder(names: string[]): : FieldCollectionPipeline
Summary
Returns a new pipeline with detectors reordered by name.
Source Code
withOrder(names: string[]): FieldCollectionPipeline {
const ordered = names
.map((n) => this.detectors.find((d) => d.name === n))
.filter((d): d is PageDetector => d !== undefined);
return new FieldCollectionPipeline(ordered);
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| DetectionPipeline | instantiates |
| FieldCollectionPipeline | instantiates |
No incoming dependencies.