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 7bbae33 commit 46d52a7Copy full SHA for 46d52a7
src/parser.ts
@@ -896,7 +896,11 @@ export class Parser {
896
const functionStatement = this.getFunctionStatement(statement);
897
898
// Extracting default values from props destructuring
899
- if (functionStatement && functionStatement.parameters.length) {
+ if (
900
+ functionStatement &&
901
+ functionStatement.parameters &&
902
+ functionStatement.parameters.length
903
+ ) {
904
const { name } = functionStatement.parameters[0];
905
906
if (ts.isObjectBindingPattern(name)) {
0 commit comments