(self: Instruction)
| 357 | } |
| 358 | |
| 359 | const 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 | |
| 394 | const validateInternal = ( |
| 395 | self: Instruction, |
no outgoing calls
no test coverage detected