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.
1 parent 693f14b commit d61c4d2Copy full SHA for d61c4d2
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