Skip to content

Commit

Permalink
Internal: use multiline comments to enable flow docs (#2383)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianvuerings authored Sep 12, 2022
1 parent e974221 commit 0881e35
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/docs-components/PageHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ const buildSourceLinkUrl = (componentName) =>

type Props = {|
badge?: 'pilot' | 'deprecated',
// DEPRECATED: Use `children` instead of `defaultCode`
/**
* @deprecated : Use `children` instead of `defaultCode`
*/
defaultCode?: string,
description?: string,
fileName?: string, // only use if name !== file name
folderName?: string, // only use if name !== file name and the link should point to a directory
/**
* Only use if name !== file name
*/
fileName?: string,
/**
* Only use if name !== file name and the link should point to a directory
*/
folderName?: string,
showCode?: boolean,
name: string,
margin?: 'default' | 'none',
Expand Down

0 comments on commit 0881e35

Please sign in to comment.