@internal
()
| 1067 | } |
| 1068 | /** @internal */ |
| 1069 | getParser() { |
| 1070 | const values = new Set<unknown>(this.enums.map(([, v]) => v)) |
| 1071 | return fromRefinement( |
| 1072 | this, |
| 1073 | (input): input is typeof this.enums[number][1] => values.has(input) |
| 1074 | ) |
| 1075 | } |
| 1076 | /** @internal */ |
| 1077 | toCodecStringTree(): AST { |
| 1078 | if (this.enums.some(([_, v]) => typeof v === "number")) { |
nothing calls this directly
no test coverage detected