UNPKG

@cf-wasm/og

Version:

Generate Open Graph Images dynamically from HTML/CSS without a browser.

27 lines (26 loc) 691 B
/** * An interface representing the options for constructing {@link FetchError} */ export interface FetchErrorOptions extends ErrorOptions { /** * The `Response` object if applicable */ response?: Response; } /** * Represents a Error ocurred while fetching */ export declare class FetchError extends Error { name: string; /** * The response object for which fetch failed if provided */ response: Response | undefined; /** * Creates an instance of {@link FetchError} * * @param message The error message * @param options The {@link FetchErrorOptions} */ constructor(message: string, options?: FetchErrorOptions); }