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.
2 parents 7570879 + cbf74dc commit afa76c7Copy full SHA for afa76c7
lib/utils.js
@@ -39,6 +39,9 @@ const typify = (type) => {
39
40
if (typeof type === 'object') {
41
let newType = type.typeName || type.type || 'any'
42
+ if (newType.toLowerCase() === 'string' && type.possibleValues) {
43
+ newType = `(${type.possibleValues.map(value => `'${value.value}'`).join(' | ')})`
44
+ }
45
if (type.collection) {
46
type = newType + '[]'
47
} else {
0 commit comments