From ec1e3312130c9fb607bb74915722ab23139ec62f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Mon, 11 Mar 2019 14:42:13 -0400 Subject: [PATCH] @storybook/addon-a11y: Deprecate checkA11y in favor of withA11y (#33627) See https://github.com/storybooks/storybook/blob/f2b625bab05720c4c323af3e612e7d03adbd3b92/addons/a11y/src/index.js#L66-L70 and https://github.com/storybooks/storybook/blob/next/MIGRATION.md#addon-a11y-uses-parameters-decorator-renamed. --- types/storybook__addon-a11y/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/storybook__addon-a11y/index.d.ts b/types/storybook__addon-a11y/index.d.ts index 7e7ac3b89e..fa82d44867 100644 --- a/types/storybook__addon-a11y/index.d.ts +++ b/types/storybook__addon-a11y/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @storybook/addon-a11y 3.3 +// Type definitions for @storybook/addon-a11y 5.0 // Project: https://github.com/storybooks/storybook // Definitions by: HyunSeob // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -6,4 +6,5 @@ import { StoryDecorator } from '@storybook/react'; -export const checkA11y: StoryDecorator; +export const checkA11y: StoryDecorator; // Deprecated +export const withA11y: StoryDecorator;