(branch: unknown)
| 94 | |
| 95 | /** A bare `{ "type": "string" }` branch - the open half of an open enum. */ |
| 96 | const isOpenStringBranch = (branch: unknown): boolean => |
| 97 | isRecord(branch) && branch.type === "string" && Object.keys(branch).length === 1 |
| 98 | |
| 99 | /** The value of a `{ "const": "..." }` branch, when it is a string const. */ |
| 100 | const constBranchValue = (branch: unknown): string | undefined => |
no test coverage detected