@prismicio/next
Version:
Helpers to integrate Prismic into Next.js apps
16 lines (15 loc) • 606 B
TypeScript
import { PrismicDocument } from "@prismicio/client";
//#region src/getPrismicCacheTags.d.ts
/**
* Generates cache tags for a set of Prismic pages. Tags for linked pages (e.g. a content
* relationship) are included to ensure all related content can be revalidated.
*
* @param pages - A set of Prismic pages used to tag the function.
* @experimental
*
* @see {@link https://nextjs.org/docs/app/api-reference/functions/cacheTag}
*/
declare function getPrismicCacheTags(pages: PrismicDocument[]): string[];
//#endregion
export { getPrismicCacheTags };
//# sourceMappingURL=getPrismicCacheTags.d.ts.map