UNPKG

@cf-wasm/og

Version:

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

30 lines 768 B
//#region src/core/errors.d.ts /** * An interface representing the options for constructing {@link FetchError} */ interface FetchErrorOptions extends ErrorOptions { /** * The `Response` object if applicable */ response?: Response; } /** * Represents a Error ocurred while fetching */ 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); } //#endregion export { FetchError, FetchErrorOptions }; //# sourceMappingURL=errors.d.cts.map