Open lll000111 opened 7 years ago
This seems to happen if you have a@typedef {T}
but don't specify a name
Also seeing this if I use a class field which has a dasherized name;
export default class MyComponent {
/* I am a prop */
'my-prop': 123;
}
doc.name
will be undefined
in this case and the Plugin will throw the TypeError
undefined !== null
Simply change it to if (autoPrivate && doc.name && doc.name.charAt(0) === '_') {