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

(cherry picked from commit 46646d2)
  • Loading branch information
valentinpalkovic authored and storybook-bot committed May 15, 2024
1 parent 884e4b2 commit 36eef98
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 36eef98

Please sign in to comment.