(comment: string)
| 4 | }; |
| 5 | |
| 6 | export const toCommentSeparator = (comment: string) => { |
| 7 | const halfSpaceBefore = Math.ceil((64 - comment.length) / 2); |
| 8 | return [ |
| 9 | `/*${"/".repeat(62)}`, |
| 10 | `${" ".repeat(halfSpaceBefore)}${comment}`, |
| 11 | `${"/".repeat(62)}*/`, |
| 12 | ]; |
| 13 | }; |
| 14 | |
| 15 | export const toNatspec = (comments: string[]) => ([ |
| 16 | "/**", |