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

Function getTypeNameInternal

packages/cli/src/internal/primitive.ts:359–392  ·  view source on GitHub ↗
(self: Instruction)

Source from the content-addressed store, hash-verified

357}
358
359const getTypeNameInternal = (self: Instruction): string => {
360 switch (self._tag) {
361 case "Bool": {
362 return "boolean"
363 }
364 case "Choice": {
365 return "choice"
366 }
367 case "DateTime": {
368 return "date"
369 }
370 case "Float": {
371 return "float"
372 }
373 case "Integer": {
374 return "integer"
375 }
376 case "Path": {
377 if (self.pathType === "either") {
378 return "path"
379 }
380 return self.pathType
381 }
382 case "Redacted": {
383 return "redacted"
384 }
385 case "Secret": {
386 return "secret"
387 }
388 case "Text": {
389 return "text"
390 }
391 }
392}
393
394const validateInternal = (
395 self: Instruction,

Callers 2

getTypeNameFunction · 0.85
validateInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected