Extractor interface exported
Last updated: 2026-02-24T19:46:21.773Z
Metrics
LOC: 7
Complexity: 1
Params: 0
Signature
interface Extractor
Summary
Extractor Interface Base contract for extraction utilities that pull data from DOM / HTML elements. Extractors do NOT classify field types — they only gather raw data (labels, selectors, signals) from the page. TInput — what the extractor receives (e.g. HTMLElement, FormField). TResult — what the extractor returns (e.g. string, LabelResult). Concrete implementations: selectorExtractor : Extractor<Element, string> signalsExtractor : Extractor<Partial
Source Code
export interface Extractor<TInput, TResult> {
/** Unique identifier for this extractor. */
readonly name: string;
/** Run the extraction logic and return the result. */
extract(input: TInput): TResult;
}
Members
| Name | Kind | Visibility | Status | Signature |
|---|---|---|---|---|
| extract | method | - | extract(input: TInput): : TResult |
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| findLabelWithStrategy | uses |
| getUniqueSelector | uses |
| buildSignals | uses |