File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 74
74
"test" : " cross-env NODE_ENV=test jest --verbose" ,
75
75
"test:update-snap" : " cross-env NODE_ENV=test jest --updateSnapshot" ,
76
76
"test:clear" : " cross-env NODE_ENV=test jest --clearCache" ,
77
- "test:update-snap" : " cross-env NODE_ENV=test jest --updateSnapshot" ,
78
77
"linter" : " eslint src" ,
79
78
"develop" : " concurrently \" npm run dev\" \" npm run electron\" "
80
79
},
Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ const availablePropTypes = {
51
51
boolean : 'BOOL' ,
52
52
function : 'FUNC' ,
53
53
any : 'ANY' ,
54
- tuple : 'TUP' ,
55
- enum : 'ENUM'
54
+ tuple : 'TUP'
56
55
} ;
57
56
58
57
// generates the various options for the prop type selection
Original file line number Diff line number Diff line change @@ -41,16 +41,8 @@ const componentRender = (
41
41
return 'boolean' ;
42
42
case 'function' :
43
43
return '() => any' ;
44
- // case 'symbol':
45
- // return 'string';
46
- case 'node' :
47
- return 'string' ;
48
- case 'element' :
49
- return 'string' ;
50
44
case 'tuple' :
51
45
return '[any]' ;
52
- case 'enum' :
53
- return '{}' ;
54
46
case 'any' :
55
47
return 'any' ;
56
48
default :
@@ -183,7 +175,7 @@ const componentRender = (
183
175
. join ( '\n' ) }
184
176
185
177
186
-
178
+ /* Replace "any" with stricter types to reflect your usage*/
187
179
interface Props {
188
180
${ props . map ( prop => `${ prop . key } : ${ typeSwitcher ( prop . type ) } ;\n` ) }
189
181
};
You can’t perform that action at this time.
0 commit comments