Skip to content

Commit

Permalink
chore: html prop 필터
Browse files Browse the repository at this point in the history
  • Loading branch information
drakang4 committed May 27, 2024
1 parent ad73433 commit c9af523
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ const config: StorybookConfig = {
typescript: {
reactDocgenTypescriptOptions: {
tsconfigPath: 'tsconfig.test.json',
propFilter: (prop) => {
if (prop.declarations !== undefined && prop.declarations.length > 0) {
const hasPropAdditionalDescription = prop.declarations.find(
(declaration) => {
return !declaration.fileName.includes('node_modules')
},
)

return Boolean(hasPropAdditionalDescription)
}

return true
},
},
},
framework: {
Expand Down

0 comments on commit c9af523

Please sign in to comment.