Hi there!
screenshot:

Problem
My default value isn't parsed ? because obj.type.name is not "string" ?
see L80 of react-doc-generator.js
Thoughts
so it just works for PropTypes.string?
why is it necessary to check the propType, if we just want to see the default value!?
const isString = /* obj.type.name === 'string' */
&& typeof obj.defaultValue.value === 'string';
and maybe you can explain what Line82 is for:
const isInvalidValue = (/[^\w\s.&:\-+*,!@%$]+/igm).test(obj.defaultValue.value);
or why does it have to match the isInvalidValue RegExp?
What would be an invalid value for a default value? More important, why?
const isInvalidValue = (/[^\w\s.&:\-+*,!@%$]+/igm).test(obj.defaultValue.value);
best regards,
DoubleU23
Hi there!
screenshot:

Problem
My default value isn't parsed ? because
obj.type.nameis not "string" ?see L80 of react-doc-generator.js
Thoughts
so it just works for
PropTypes.string?why is it necessary to check the propType, if we just want to see the default value!?
and maybe you can explain what Line82 is for:
or why does it have to match the
isInvalidValueRegExp?What would be an invalid value for a default value? More important, why?
const isInvalidValue = (/[^\w\s.&:\-+*,!@%$]+/igm).test(obj.defaultValue.value);best regards,
DoubleU23