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.
undefined
1 parent db7c9d0 commit 2477e11Copy full SHA for 2477e11
src/cmd/docgen/index.ts
@@ -103,7 +103,7 @@ export const execute = async (
103
let defaultValue = prop.defaultValue?.value?.toString();
104
105
if (
106
- (type === 'string' && defaultValue !== null) ||
+ (type === 'string' && defaultValue !== null && defaultValue !== undefined) ||
107
type.includes(`'${defaultValue}'`)
108
) {
109
// Surround default string literals with quotes.
0 commit comments