message: refactor: fix types
diff: @@ -33,9 +33,11 @@ function postTransformNode (el: ASTElement) {
  function genText (node) {
  const value = node.type === 3
  ? node.text
  - : node.tokens.length === 1
  + : node.type === 2
  + ? node.tokens.length === 1
  ? node.tokens[0]
  : node.tokens
  + : ''
  return JSON.stringify(value)
  }
  