Use ts-expect-error instead of ts-ignore.

This commit is contained in:
Gert Hengeveld 2020-12-18 12:02:08 +01:00
parent 23b4a790f5
commit 389705710c

View File

@ -8,7 +8,7 @@ import {
SyntaxHighlighterRendererProps,
} from '@storybook/components';
// @ts-ignore
// @ts-expect-error Typedefs don't currently expose `createElement` even though it exists
import { createElement as createSyntaxHighlighterElement } from 'react-syntax-highlighter';
import { SourceBlock, LocationsMap } from '@storybook/source-loader';