(branch: unknown)
| 98 | |
| 99 | /** The value of a `{ "const": "..." }` branch, when it is a string const. */ |
| 100 | const constBranchValue = (branch: unknown): string | undefined => |
| 101 | isRecord(branch) && Predicate.isString(branch.const) ? branch.const : undefined |
| 102 | |
| 103 | /** |
| 104 | * Collapse an open enum's const branches into a single `enum` branch. |
no test coverage detected