MCPcopy Index your code
hub / github.com/Effect-TS/effect / validatePrimitive

Function validatePrimitive

packages/cli/src/internal/options.ts:1330–1333  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1328 }
1329 const primitive = self.argumentOption.primitiveType
1330 const validatePrimitive = (value: string) =>
1331 InternalPrimitive.validate(primitive, Option.some(value), config).pipe(
1332 Effect.mapError((e) => InternalValidationError.invalidValue(InternalHelpDoc.p(e)))
1333 )
1334 return Effect.forEach(values, (value) => validatePrimitive(value))
1335 }
1336 // If we did not receive any variadic arguments then perform the bounds

Callers 1

validateMinMaxFunction · 0.85

Calls 2

validateMethod · 0.80
pipeMethod · 0.65

Tested by

no test coverage detected