Fix deepscan

This commit is contained in:
Michael Shilman 2020-07-16 12:59:30 +08:00
parent 9a6bc4ad73
commit d2c0375a2f
2 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { inferControls } from './inferControls';
import { normalizeArgTypes } from './normalizeArgTypes';
export const enhanceArgTypes: ArgTypesEnhancer = (context) => {
const { component, argTypes: userArgTypes = {}, docs = {}, args = {} } = context.parameters;
const { component, argTypes: userArgTypes = {}, docs = {} } = context.parameters;
const { extractArgTypes } = docs;
const normalizedArgTypes = normalizeArgTypes(userArgTypes);

View File

@ -1,5 +1,4 @@
import mapValues from 'lodash/mapValues';
import { Args, ArgTypes } from '@storybook/addons';
import { ArgTypesEnhancer } from './types';
import { combineParameters } from './parameters';