diff --git a/code/lib/types/src/modules/addons.ts b/code/lib/types/src/modules/addons.ts index 463c2c0e3b99..f55efcd29983 100644 --- a/code/lib/types/src/modules/addons.ts +++ b/code/lib/types/src/modules/addons.ts @@ -307,7 +307,11 @@ export type BaseStory = export interface Addon_RenderOptions { active: boolean; - key: string; + /** + * @deprecated You should not use key anymore as of Storybook 7.2 this render method is invoked as a React component. + * This property will be removed in 8.0. + * */ + key?: unknown; } /**