| 6 | } |
| 7 | |
| 8 | interface Env { |
| 9 | ASSETS: { |
| 10 | fetch(request: Request): Promise<Response>; |
| 11 | }; |
| 12 | AI: { |
| 13 | toMarkdown( |
| 14 | document: { name: string; blob: Blob }, |
| 15 | options?: { conversionOptions?: { html?: { hostname?: string; cssSelector?: string } } }, |
| 16 | ): Promise<MarkdownConversionResult>; |
| 17 | }; |
| 18 | } |
| 19 | |
| 20 | function isMarkdownRequest(request: Request, url: URL) { |
| 21 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected