(self: Instruction)
| 957 | } |
| 958 | |
| 959 | const isBoolInternal = (self: Instruction): boolean => { |
| 960 | switch (self._tag) { |
| 961 | case "Single": { |
| 962 | return InternalPrimitive.isBool(self.primitiveType) |
| 963 | } |
| 964 | case "Map": { |
| 965 | return isBoolInternal(self.options as Instruction) |
| 966 | } |
| 967 | case "WithDefault": { |
| 968 | return isBoolInternal(self.options as Instruction) |
| 969 | } |
| 970 | default: { |
| 971 | return false |
| 972 | } |
| 973 | } |
| 974 | } |
| 975 | |
| 976 | const makeBoth = <A, B>( |
| 977 | left: Options.Options<A>, |
no outgoing calls
no test coverage detected