-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc45094
commit 6c99842
Showing
5 changed files
with
174 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { ParserOptions, ComponentDoc } from 'react-docgen-typescript'; | ||
|
||
/** | ||
* run API to generate react-docgen-typescript props information tables. | ||
* @param options configuration options | ||
* @returns a callable function of type PropsInfoExtractorFunction | ||
* a callback to transfor them props table and the options to be passd to react-docgen-typescript. | ||
*/ | ||
export const run = (options?: string): number => { | ||
return parseInt(options || ''); | ||
}; | ||
export type RectDocgenTypescriptOptions = { | ||
/** | ||
* callback to transform the props table | ||
*/ | ||
transformProps?: (props: ComponentDoc[]) => ComponentDoc; | ||
} & ParserOptions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.