@hanivanrizky/nestjs-html-parser
Version:
⚠️ ARCHIVED - This package is no longer maintained. Please migrate to @hanivanrizky/nestjs-xpath-parser (https://github.com/Hanivan/nestjs-xpath-parser)
42 lines (41 loc) • 1.17 kB
TypeScript
/**
* @fileoverview Type Definitions for NestJS HTML Parser
*
* This module exports all TypeScript interfaces and types used by the HTML parser package.
* These types provide full type safety and IntelliSense support for all package features.
*
* ## Available Types
* - **ProxyConfig**: Configuration for HTTP/HTTPS/SOCKS proxy servers
* - **HtmlFetchResponse**: Response object containing HTML content and metadata
* - **ExtractionSchema**: Schema definition for structured data extraction
* - **HtmlParserOptions**: Configuration options for HTML parsing operations
*
* @example
* ```typescript
* import {
* HtmlParserOptions,
* ProxyConfig,
* ExtractionSchema
* } from '@hanivanrizky/nestjs-html-parser';
*
* const options: HtmlParserOptions = {
* timeout: 10000,
* useRandomUserAgent: true,
* verbose: true
* };
*
* const proxy: ProxyConfig = {
* url: 'http://proxy.example.com:8080',
* username: 'user',
* password: 'pass'
* };
* ```
*/
export * from './proxy';
export * from './response';
export * from './extraction';
export * from './options';
export interface PaginationPage {
href: string;
text: string;
}