Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Jul 6, 2022
1 parent ea90019 commit c547333
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion addons/docs/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 2 additions & 8 deletions lib/core-server/src/dev-server.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit c547333

Please sign in to comment.