Code review

This commit is contained in:
Tom Coleman 2022-07-06 19:02:23 +10:00
parent 20e3a89b8d
commit 45f141b4d2
2 changed files with 3 additions and 9 deletions

View File

@ -137,7 +137,7 @@ export async function webpack(
return result;
}
export const storyIndexers = async (indexers: StoryIndexer[] | null) => {
export const storyIndexers = async (indexers?: StoryIndexer[]) => {
const mdxIndexer = async (fileName: string, opts: IndexerOptions) => {
let code = (await fs.readFile(fileName, 'utf-8')).toString();
// @ts-ignore

View File

@ -1,14 +1,8 @@
import express, { Router } from 'express';
import compression from 'compression';
import {
CoreConfig,
DocsOptions,
Options,
StorybookConfig,
normalizeStories,
logConfig,
} from '@storybook/core-common';
import type { CoreConfig, DocsOptions, Options, StorybookConfig } from '@storybook/core-common';
import { normalizeStories, logConfig } from '@storybook/core-common';
import { telemetry } from '@storybook/telemetry';
import { getMiddleware } from './utils/middleware';