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

Function parseInterfaceDeclarations

packages/tools/docgen/src/Parser.ts:140–146  ·  view source on GitHub ↗
(interfaces: ReadonlyArray<ast.InterfaceDeclaration>)

Source from the content-addressed store, hash-verified

138 })
139
140const parseInterfaceDeclarations = (interfaces: ReadonlyArray<ast.InterfaceDeclaration>) => {
141 const exportedInterfaces = Array.filter(
142 interfaces,
143 (id) => id.isExported()
144 )
145 return Effect.forEach(exportedInterfaces, parseInterfaceDeclaration).pipe(Effect.map(Array.flatten))
146}
147
148/**
149 * Parses exported interfaces from the current source file.

Callers 2

Parser.tsFile · 0.85
parseModuleDeclarationFunction · 0.85

Calls 4

filterMethod · 0.80
pipeMethod · 0.65
forEachMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected