Skip to content

Commit 866dee8

Browse files
authored
fix: support primitive 'string' type for enums (#65)
Unblocks electron/electron#31752
1 parent c9fb5ff commit 866dee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/markdown-helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export const rawTypeToTypeInformation = (
320320
}))
321321
: [],
322322
};
323-
} else if (typeString === 'String') {
323+
} else if (typeString === 'String' || typeString === 'string') {
324324
return {
325325
collection,
326326
type: 'String',

0 commit comments

Comments
 (0)