(content)
| 48 | } |
| 49 | |
| 50 | function readValidatorOptions(content) { |
| 51 | const head = 'export type Options = '; |
| 52 | const lines = content.split('\n'); |
| 53 | const [line] = lines.filter((m) => m.startsWith(head)); |
| 54 | const value = line.substr(head.length); |
| 55 | const options = value.substr(0, value.indexOf(';')); |
| 56 | |
| 57 | if (options === 'void') { |
| 58 | return '<none>'; |
| 59 | } |
| 60 | |
| 61 | return options; |
| 62 | } |
| 63 | |
| 64 | function readValidatorDescription(content) { |
| 65 | const head = 'export default '; |
no test coverage detected