Closed nibytes closed 5 years ago
result = type === 'string' ?
enumArray.map(item => `'${item}'`).join('|') :
enumArray.join('|')
I think this happen here createDefinitionEnum
, and when results of this function using like that
allEnum.forEach(item => {
if (allImport.includes(item.name)) {
const text = item.value
? enumTemplate(item.value.name, item.value.enumProps, options.enumNamePrefix)//here
: item.content || ''
defSource += text
}
})
string like 1|2|3
inserting in enum template
@Manweill Can you check and approve PR?
@Manweill ???
Day off before today
@Manweill Can you update npm version? Pls pls pls is very urgent
(node:17056) UnhandledPromiseRejectionWarning: SyntaxError: ',' expected. (4979:6)