UNPKG

@hanivanrizky/nestjs-html-parser

Version:

A powerful NestJS HTML parsing service with XPath and CSS selector support, proxy configuration, random user agents, and rich response metadata including headers and status codes

36 lines (35 loc) 866 B
/** * TypeScript Generic Types Example * * This example demonstrates the new generic type support in the HTML parser, * providing complete type safety for all extraction operations. */ interface BlogPost { title: string; author: string; publishDate: Date; content: string; tags: string[]; viewCount: number; isPublished: boolean; } interface Product { name: string; price: number; rating: number; reviewCount: number; inStock: boolean; images: string[]; category: string; } interface UserProfile { username: string; email: string; joinDate: Date; postCount: number; reputation: number; badges: string[]; isVerified: boolean; } declare function demonstrateTypedExtraction(verbose?: boolean): Promise<void>; export { BlogPost, demonstrateTypedExtraction, Product, UserProfile };