diff --git a/src/core/utils.ts b/src/core/utils.ts index 939db8e..8a5b331 100644 --- a/src/core/utils.ts +++ b/src/core/utils.ts @@ -53,8 +53,8 @@ export function printVueAcceptableTypeLiteralFromSymbols( const typeString = typeChecker.typeToString( typeChecker.getBaseTypeOfLiteralType(type), ); - let questionMark =decl.questionToken?'?': ""; - push( + const questionMark = decl.questionToken ? "?" : ""; + push( `${decl.name.getText()}${questionMark}: ${toVueAcceptableType( typeString, )};`,