From ffd99ee403644375a3e6d2725a87a25c00d5dc46 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Tue, 14 May 2024 16:00:55 +0200 Subject: [PATCH] Merge pull request #27105 from storybookjs/valentin/nextjs-add-image-typing Next.js: Add typing for NextImage to main framework options type (cherry picked from commit 46646d27897758b96af6afbe3259a602f51d16e7) --- code/frameworks/nextjs/src/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/frameworks/nextjs/src/types.ts b/code/frameworks/nextjs/src/types.ts index 4707d03d27e8..9ff68f830b28 100644 --- a/code/frameworks/nextjs/src/types.ts +++ b/code/frameworks/nextjs/src/types.ts @@ -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; builder?: BuilderOptions; };