Skip to content

Commit

Permalink
Merge pull request #27105 from storybookjs/valentin/nextjs-add-image-…
Browse files Browse the repository at this point in the history
…typing

Next.js: Add typing for NextImage to main framework options type
  • Loading branch information
valentinpalkovic authored May 14, 2024
2 parents f4d3e75 + e21f7d4 commit 46646d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/frameworks/nextjs/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ import type {
BuilderOptions,
TypescriptOptions as TypescriptOptionsBuilder,
} from '@storybook/builder-webpack5';
import type * as NextImage from 'next/image';

type FrameworkName = '@storybook/nextjs';
type BuilderName = '@storybook/builder-webpack5';

export type FrameworkOptions = ReactOptions & {
nextConfigPath?: string;

image?: Partial<NextImage.ImageProps>;
builder?: BuilderOptions;
};

Expand Down

0 comments on commit 46646d2

Please sign in to comment.