(contents: string)
| 27 | } |
| 28 | |
| 29 | export function strip(contents: string): string { |
| 30 | const matchResult = contents.match(docblockRe); |
| 31 | const match = matchResult?.[0]; |
| 32 | return match == null ? contents : contents.slice(match.length); |
| 33 | } |
| 34 | |
| 35 | export function parse(docblock: string): Pragmas { |
| 36 | return parseWithComments(docblock).pragmas; |