Skip to content

Commit

Permalink
fix: last babel cheks for const initialization
Browse files Browse the repository at this point in the history
close #1299
  • Loading branch information
elevatebart committed Mar 24, 2022
1 parent 810a17e commit 8587549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-docgen-api/src/script-handlers/propHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export function describeType(
if (propDescriptor.tags && propDescriptor.tags.type) {
const [{ type: typeDesc }] = propDescriptor.tags.type as UnnamedParam[]
if (typeDesc) {
const typedAST = getTemplateExpressionAST(`const a:${typeDesc.name}`)
const typedAST = getTemplateExpressionAST(`let a:${typeDesc.name}`)
let typeValues: string[] | undefined
visit(typedAST.program, {
visitVariableDeclaration(path) {
Expand Down

0 comments on commit 8587549

Please sign in to comment.