We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 693f14b + d61c4d2 commit bf212b8Copy full SHA for bf212b8
src/parser.ts
@@ -793,6 +793,9 @@ export class Parser {
793
794
const defaultProps = possibleDefaultProps[0];
795
let initializer = (defaultProps as ts.PropertyDeclaration).initializer;
796
+ if (!initializer) {
797
+ return res;
798
+ }
799
let properties = (initializer as ts.ObjectLiteralExpression).properties;
800
801
while (ts.isIdentifier(initializer as ts.Identifier)) {
0 commit comments