(line: string)
| 59 | } |
| 60 | |
| 61 | const 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 | |
| 69 | interface ModuleMetadata { |
| 70 | readonly since: string |