UNPKG

@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)

34 lines (33 loc) 1.19 kB
/** * Advanced Transform Pipes Example * * This example demonstrates the new advanced transform functionality that supports * pipe arrays with baseUrl context, similar to the inspiration system. * It shows how to chain multiple transform pipes where each pipe's output * becomes the input for the next pipe. */ declare class ParseAsURLPipe { baseUrl?: string; transform(url: string): string; } declare class QueryAppendPipe { queryParams: Record<string, string>; transform(url: string): string; } declare class RegexReplacePipe { type: string; baseUrl?: string; regex: string; textReplacement: string; flag: string; transform(val: string): string; } declare class NumberNormalizePipe { transform(numString: string): number; } declare class DateFormatPipe { transform(dateString: string): number; } declare function demonstrateAdvancedTransformPipes(verbose?: boolean): Promise<void>; declare function demonstrateProductTransformPipes(verbose?: boolean): Promise<void>; export { DateFormatPipe, demonstrateAdvancedTransformPipes, demonstrateProductTransformPipes, NumberNormalizePipe, ParseAsURLPipe, QueryAppendPipe, RegexReplacePipe, };