MCPcopy Create free account
hub / github.com/SplootCode/splootcode / serializeAliasType

Function serializeAliasType

scripts/generateLibs.ts:216–229  ·  view source on GitHub ↗
(aliasSymbol: ts.Symbol)

Source from the content-addressed store, hash-verified

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()) {

Callers 1

serializeTypeFunction · 0.85

Calls 2

serializeTypeExpressionFunction · 0.85
getNameMethod · 0.45

Tested by

no test coverage detected