ChemPare Documentation - v0.0.0
    Preparing search index...

    Type Alias HTMLResponse

    HTMLResponse: Response & { text: () => Promise<string> }

    Extended Response type specifically for HTML responses. Used for handling HTTP responses containing HTML content.

    Type declaration

    • text: () => Promise<string>

      Returns the response body as a string

    async function fetchHTML(): Promise<HTMLResponse> {
    const response = await fetch("https://example.com");
    return response as HTMLResponse;
    }