(option)
| 55 | } |
| 56 | |
| 57 | function createOptionUsageType(option) { |
| 58 | switch (option.type) { |
| 59 | case "boolean": |
| 60 | return null; |
| 61 | case "choice": |
| 62 | return `<${option.choices |
| 63 | .filter((choice) => !choice.deprecated) |
| 64 | .map((choice) => choice.value) |
| 65 | .join("|")}>`; |
| 66 | default: |
| 67 | return `<${option.type}>`; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | function createChoiceUsages(choices, margin, indentation) { |
| 72 | const activeChoices = choices.filter((choice) => !choice.deprecated); |
no test coverage detected
searching dependent graphs…