(node: ast.Node)
| 157 | ) |
| 158 | |
| 159 | const getTypeText = (node: ast.Node) => |
| 160 | node.getType().getText( |
| 161 | node, |
| 162 | ast.ts.TypeFormatFlags.NoTruncation |
| 163 | | ast.ts.TypeFormatFlags.WriteArrayAsGenericType |
| 164 | | ast.ts.TypeFormatFlags.UseAliasDefinedOutsideCurrentScope |
| 165 | | ast.ts.TypeFormatFlags.NoTypeReduction |
| 166 | | ast.ts.TypeFormatFlags.AllowUniqueESSymbolType |
| 167 | | ast.ts.TypeFormatFlags.WriteArrowStyleSignature |
| 168 | ) |
| 169 | |
| 170 | const parseType = (node: ast.Node) => { |
| 171 | let text = getTypeText(node) |