Sanity Library Reference Docs
    Preparing search index...
    DefinedFetchType: {
        <const QueryString extends string>(
            options: DefinedFetchStegaEnabledOptions<QueryString>,
        ): DefinedFetchResult<
            StegaBranded<ClientReturn<QueryString, unknown>, number, number>,
        >;
        <const QueryString extends string>(
            options: DefinedFetchStegaDisabledOptions<QueryString>,
        ): DefinedFetchResult<ClientReturn<QueryString, unknown>>;
        <const QueryString extends string>(
            options: DefinedFetchOptions<QueryString>,
        ): DefinedFetchResult<
            StegaBranded<ClientReturn<QueryString, unknown>, number, number>,
        >;
    }

    Fetches data through the configured Sanity client and returns the result together with the source map and cache tags that Sanity Live uses for targeted revalidation.

    Returned by defineLive({strict: false}) and defineLive({strict: undefined}).

    Overloads brand data with stega string types when stega may be enabled (stega: true, a non-literal boolean, or omitted). Literal stega: false keeps clean TypeGen / ClientReturn types.

    Type declaration