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