MCPcopy
hub / github.com/Effect-TS/effect / isBoolInternal

Function isBoolInternal

packages/cli/src/internal/options.ts:959–974  ·  view source on GitHub ↗
(self: Instruction)

Source from the content-addressed store, hash-verified

957}
958
959const 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
976const makeBoth = <A, B>(
977 left: Options.Options<A>,

Callers 2

isBoolFunction · 0.85
wizardInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected