| 56 | * Extracted article data structure. |
| 57 | */ |
| 58 | export interface ArticleData { |
| 59 | /** Best resolved URL of the article */ |
| 60 | url?: string |
| 61 | /** Alternative URLs (canonical, shortlink, etc.) */ |
| 62 | links?: string[] |
| 63 | /** Article title */ |
| 64 | title?: string |
| 65 | /** Short description or excerpt */ |
| 66 | description?: string |
| 67 | /** Main image URL */ |
| 68 | image?: string |
| 69 | /** Site favicon URL */ |
| 70 | favicon?: string |
| 71 | /** Author name */ |
| 72 | author?: string |
| 73 | /** Extracted article HTML content */ |
| 74 | content?: string |
| 75 | /** Original publisher/source domain */ |
| 76 | source?: string |
| 77 | /** Publication date string */ |
| 78 | published?: string |
| 79 | /** Estimated time to read in seconds (0 = unknown) */ |
| 80 | ttr?: number |
| 81 | /** Page type (e.g. article) */ |
| 82 | type?: string |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Register one or more transformations for per-site HTML processing. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…