(aliasSymbol: ts.Symbol)
| 214 | } |
| 215 | |
| 216 | function serializeAliasType(aliasSymbol: ts.Symbol) { |
| 217 | const name = aliasSymbol.getName() |
| 218 | if (seenTypes.has(name)) { |
| 219 | return |
| 220 | } |
| 221 | seenTypes.add(name) |
| 222 | aliasSymbol.declarations.forEach((dec) => { |
| 223 | const aliasDec = dec as ts.TypeAliasDeclaration |
| 224 | typeAliases.push({ |
| 225 | name: name, |
| 226 | typeExpression: serializeTypeExpression(aliasDec.type), |
| 227 | }) |
| 228 | }) |
| 229 | } |
| 230 | |
| 231 | function serializeType(type: ts.Type) { |
| 232 | if (type.isUnionOrIntersection()) { |
no test coverage detected