Skip to content
Permalink
Browse files
Merge pull request #9873 from storybookjs/9827-ts-default-values
Props: Fix typescript unspecified default value
  • Loading branch information
shilman committed Feb 25, 2020
1 parent 7ab4626 commit 039522314ec8f10eb942b623e730fbc132bb877c
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/docs/src/frameworks/react/typeScript/handleProp.ts
@@ -24,5 +24,5 @@ export function enhanceTypeScriptProp(extractedProp: ExtractedProp, rawDefaultPr
}

export function enhanceTypeScriptProps(extractedProps: ExtractedProp[]): PropDef[] {
return extractedProps.map(enhanceTypeScriptProp);
return extractedProps.map(prop => enhanceTypeScriptProp(prop));
}

0 comments on commit 0395223

Please sign in to comment.