MCPcopy Create free account
hub / github.com/Effect-TS/effect / getTypeText

Function getTypeText

packages/tools/docgen/src/Parser.ts:159–168  ·  view source on GitHub ↗
(node: ast.Node)

Source from the content-addressed store, hash-verified

157)
158
159const 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
170const parseType = (node: ast.Node) => {
171 let text = getTypeText(node)

Callers 1

parseTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected