MCPcopy Create free account
hub / github.com/Effect-TS/effect / isBoolInternal

Function isBoolInternal

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

Source from the content-addressed store, hash-verified

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

Callers 2

isBoolFunction · 0.85
wizardInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected