Skip to content

Commit 16fda8a

Browse files
committed
fix website
1 parent 72f3d72 commit 16fda8a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/website/src/components/playground/Playground.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ import OptionPanel, { Language } from './OptionPanel';
44
import type { Config } from 'react-docgen';
55
import { parse, builtinResolvers } from 'react-docgen';
66

7-
const defaultPlugins = [
7+
type Plugins = NonNullable<
8+
NonNullable<NonNullable<Config['babelOptions']>['parserOpts']>['plugins']
9+
>;
10+
11+
const defaultPlugins: Plugins = [
812
'jsx',
913
'asyncDoExpressions',
1014
'decimal',
@@ -79,7 +83,7 @@ export default class App extends Component<PlaygroundProps, PlaygroundState> {
7983
};
8084

8185
buildOptions(language: Language): Config {
82-
const options: Config = {
86+
const options = {
8387
resolver,
8488
babelOptions: {
8589
babelrc: false,

0 commit comments

Comments
 (0)