Skip to content

Commit 5f5930c

Browse files
petegleesonNoviny
authored andcommitted
Extract types from export default (#35)
* adds initial support for extracting types from defualt export and functional components * adds best effort case for getting prop types for default export * combines default props of functional components * adds logic to prevent extracting things that look like function components inside class components * removes unused function * changes shape of what extract-react-types returns. Now returns a single component rather than an array of classes * updates prettier to have 100 char line width
1 parent 63fc21e commit 5f5930c

File tree

6 files changed

+3617
-3311
lines changed

6 files changed

+3617
-3311
lines changed

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"singleQuote": true
2+
"singleQuote": true,
3+
"printWidth": 100
34
}

0 commit comments

Comments
 (0)