UNPKG

vite-plugin-storybook-nextjs

Version:

This is a Vite plugin that allows you to use Next.js features in Vite. It is the basis for `@storybook/experimental-nextjs-vite` and should be used when running portable stories in Vitest.

28 lines (25 loc) 1.1 kB
import { Mock } from 'vitest'; type Procedure = (...args: any[]) => any; declare const revalidatePath: Mock<Procedure>; declare const revalidateTag: Mock<Procedure>; declare const updateTag: Mock<Procedure>; declare const unstable_cache: Mock<Procedure>; declare const unstable_noStore: Mock<Procedure>; declare const refresh: Mock<Procedure>; declare const cacheLife: Mock<Procedure>; declare const cacheTag: Mock<Procedure>; declare const unstable_cacheLife: Mock<Procedure>; declare const unstable_cacheTag: Mock<Procedure>; declare const cacheExports: { unstable_cache: Mock<Procedure>; revalidateTag: Mock<Procedure>; revalidatePath: Mock<Procedure>; updateTag: Mock<Procedure>; refresh: Mock<Procedure>; unstable_noStore: Mock<Procedure>; cacheLife: Mock<Procedure>; cacheTag: Mock<Procedure>; unstable_cacheLife: Mock<Procedure>; unstable_cacheTag: Mock<Procedure>; }; export { cacheLife, cacheTag, cacheExports as default, refresh, revalidatePath, revalidateTag, unstable_cache, unstable_cacheLife, unstable_cacheTag, unstable_noStore, updateTag };