Class AsyncParser<FetchResult>Abstract
Type Parameters
-
FetchResult = any
Hierarchy
- BaseParser
- AsyncParser
Index
Constructors
Methods
Constructors
constructor
- new
Async <FetchResult>(): AsyncParser<FetchResult>Parser -
Type Parameters
-
FetchResult = any
Returns AsyncParser<FetchResult>
-
Methods
Abstract parse
- parse(fetcherResult, options): Promise<DataContainer>
-
The method to implement the parsing logic for transforming the fetcherResult into a DataContainer. When a custom parser is defined, the connector must implement this method to perform data parsing.
Parameters
-
fetcherResult: FetchResult
-
options: ParseOptions
Returns Promise<DataContainer>
-
Static createContainerBuilder
- create
Container (dataContainer): DataContainerBuilderBuilder -
A static method to create a DataContainerBuilder instance based on the provided dataContainer object.
Parameters
-
dataContainer: DataContainer
Returns DataContainerBuilder
-
Generated using TypeDoc
An abstract class for the implementation of connector custom parsing that asynchronously parses the results yielded from the Fetcher.
For TypeScript, the fetcherResult type can be provided via the type parameter. By default, fetcherResult is typed as
any.Example