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

Function parseAnnotation

packages/tools/utils/src/Codegen.ts:61–67  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

59}
60
61const parseAnnotation = (line: string): string | undefined => {
62 const match = line.match(/^\/\/\s*@barrel(?:\((.+)\))?/)
63 if (!match) {
64 return undefined
65 }
66 return match[1] ?? "*.ts"
67}
68
69interface ModuleMetadata {
70 readonly since: string

Callers 1

findAnnotationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected