Skip to content

Commit

Permalink
Merge pull request #18831 from storybookjs/norbert/sb-445-sb18376-ext…
Browse files Browse the repository at this point in the history
…ractargtypes-doesnt-function

fix missing ability to set docs.`extractArgTypes` for html framework
  • Loading branch information
ndelangen committed Aug 1, 2022
2 parents 0cd8e4e + 2645e75 commit 610f4ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/renderers/html/src/config.ts
@@ -1,5 +1,5 @@
import { parameters as docsParams } from './docs/config';

export const parameters = { framework: 'html' as const, ...docsParams };
export { decorators } from './docs/config';
export { decorators, argTypesEnhancers } from './docs/config';
export { renderToDOM } from './render';
4 changes: 3 additions & 1 deletion code/renderers/html/src/docs/config.ts
@@ -1,4 +1,4 @@
import { SourceType } from '@storybook/docs-tools';
import { SourceType, enhanceArgTypes } from '@storybook/docs-tools';
import { sourceDecorator } from './sourceDecorator';

export const decorators = [sourceDecorator];
Expand All @@ -15,3 +15,5 @@ export const parameters = {
},
},
};

export const argTypesEnhancers = [enhanceArgTypes];

0 comments on commit 610f4ae

Please sign in to comment.