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 8917fb2 + 46d52a7 commit 6c2a088Copy full SHA for 6c2a088
src/parser.ts
@@ -922,7 +922,11 @@ export class Parser {
922
const functionStatement = this.getFunctionStatement(statement);
923
924
// Extracting default values from props destructuring
925
- if (functionStatement && functionStatement.parameters.length) {
+ if (
926
+ functionStatement &&
927
+ functionStatement.parameters &&
928
+ functionStatement.parameters.length
929
+ ) {
930
const { name } = functionStatement.parameters[0];
931
932
if (ts.isObjectBindingPattern(name)) {
0 commit comments