@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)
36 lines (35 loc) • 866 B
TypeScript
/**
* 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 };