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.
16 lines (13 loc) • 547 B
text/typescript
import { Mock } from 'vitest';
type Procedure = (...args: any[]) => any;
declare const revalidatePath: Mock<Procedure>;
declare const revalidateTag: Mock<Procedure>;
declare const unstable_cache: Mock<Procedure>;
declare const unstable_noStore: Mock<Procedure>;
declare const cacheExports: {
unstable_cache: Mock<Procedure>;
revalidateTag: Mock<Procedure>;
revalidatePath: Mock<Procedure>;
unstable_noStore: Mock<Procedure>;
};
export { cacheExports as default, revalidatePath, revalidateTag, unstable_cache, unstable_noStore };