From 8294e790f1fecbd02cf21ac2e89430d6be017861 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Thu, 14 Mar 2024 20:09:52 +0800 Subject: [PATCH] Fix linting --- src/story.ts | 74 ++++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/src/story.ts b/src/story.ts index d29c5a2..b03f46f 100644 --- a/src/story.ts +++ b/src/story.ts @@ -60,47 +60,47 @@ export interface InputType { control?: | ControlType | { - /** - * @see https://storybook.js.org/docs/api/arg-types#controltype - */ - type: ControlType; - } + /** + * @see https://storybook.js.org/docs/api/arg-types#controltype + */ + type: ControlType; + } | { - type: 'color'; - /** - * @see https://storybook.js.org/docs/api/arg-types#controlpresetcolors - */ - presetColors?: string[]; - } + type: 'color'; + /** + * @see https://storybook.js.org/docs/api/arg-types#controlpresetcolors + */ + presetColors?: string[]; + } | { - type: 'file'; - /** - * @see https://storybook.js.org/docs/api/arg-types#controlaccept - */ - accept?: string; - } + type: 'file'; + /** + * @see https://storybook.js.org/docs/api/arg-types#controlaccept + */ + accept?: string; + } | { - type: 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select'; - /** - * @see https://storybook.js.org/docs/api/arg-types#controllabels - */ - labels?: { [options: string]: string }; - } + type: 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select'; + /** + * @see https://storybook.js.org/docs/api/arg-types#controllabels + */ + labels?: { [options: string]: string }; + } | { - type: 'number' | 'range'; - /** - * @see https://storybook.js.org/docs/api/arg-types#controlmax - */ - max?: number; - /** - * @see https://storybook.js.org/docs/api/arg-types#controlmin - */ - min?: number; - /** - * @see https://storybook.js.org/docs/api/arg-types#controlstep - */ - step?: number; - } + type: 'number' | 'range'; + /** + * @see https://storybook.js.org/docs/api/arg-types#controlmax + */ + max?: number; + /** + * @see https://storybook.js.org/docs/api/arg-types#controlmin + */ + min?: number; + /** + * @see https://storybook.js.org/docs/api/arg-types#controlstep + */ + step?: number; + } | false; /** * @see https://storybook.js.org/docs/api/arg-types#description