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.
14 lines (11 loc) • 462 B
text/typescript
import * as React from 'next/dist/compiled/react';
import { ImageProps, StaticImageData } from 'next/image';
import { ImageProps as ImageProps$1 } from 'next/legacy/image';
interface StaticRequire {
default: StaticImageData;
}
declare type StaticImport = StaticRequire | StaticImageData;
declare const ImageContext: React.Context<Partial<Omit<ImageProps, "src"> & {
src: string | StaticImport;
}> & Omit<ImageProps$1, "src">>;
export { ImageContext };