ThroughExtractor.extract()method
Extract from the input by forwarding to source.extract().
extract(input: I): O | Promise<O>
new ThroughExtractor<I, O>(source: Extractor<I, O>)
| Param | Type | |
|---|---|---|
source | Extractor<I, O> | The inner extractor to delegate to. required |
| Return | |
|---|---|
ThroughExtractor<I, O> | Base class for an extractor that wraps another extractor. |
| Property | Type | |
|---|---|---|
.source | Extractor<I, O> | The wrapped source extractor this through extractor delegates to. required readonly |
Base class for an extractor that wraps another extractor.
source and (optionally) transform the input before or the output after.Through*Provider chains do — chain multiple ThroughExtractors to build up behaviour.new MergingExtractor(new DirectoryExtractor()) // a ThroughExtractor wrapping a source extractor
Extract from the input by forwarding to source.extract().
extract(input: I): O | Promise<O>