Function
parseInterfaceDeclarations
(interfaces: ReadonlyArray<ast.InterfaceDeclaration>)
Source from the content-addressed store, hash-verified
| 138 | }) |
| 139 | |
| 140 | const 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. |
Tested by
no test coverage detected