mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-02 05:03:44 +08:00
Remove unused code
This commit is contained in:
parent
40258db8d8
commit
90213436c7
@ -1,12 +1,9 @@
|
||||
import { ArgTypes } from '@storybook/api';
|
||||
import { ArgTypesExtractor, hasDocgen, extractComponentProps } from '../../lib/docgen';
|
||||
import { convert } from '../../lib/convert';
|
||||
import { trimQuotes } from '../../lib/convert/utils';
|
||||
|
||||
const SECTIONS = ['props', 'events', 'slots'];
|
||||
|
||||
const trim = (val: any) => (val && typeof val === 'string' ? trimQuotes(val) : val);
|
||||
|
||||
export const extractArgTypes: ArgTypesExtractor = (component) => {
|
||||
if (!hasDocgen(component)) {
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user