Preparing search index...

    Interface UseRecipeScraperReturn

    Return type for useRecipeScraper hook.

    interface UseRecipeScraperReturn {
        scrapeAndPrepare: (url: string) => Promise<ScrapeResult>;
        scrapeWithAuth: (
            url: string,
            username: string,
            password: string,
        ) => Promise<ScrapeResult>;
        isLoading: boolean;
        error: undefined | string;
        clearError: () => void;
        authRequired: null | AuthRequirement;
        clearAuthRequired: () => void;
    }
    Index

    Properties

    scrapeAndPrepare: (url: string) => Promise<ScrapeResult>
    scrapeWithAuth: (
        url: string,
        username: string,
        password: string,
    ) => Promise<ScrapeResult>
    isLoading: boolean
    error: undefined | string
    clearError: () => void
    authRequired: null | AuthRequirement
    clearAuthRequired: () => void