( raw: string | undefined, )
| 1566 | }; |
| 1567 | |
| 1568 | const parseOptionalJsonObject = ( |
| 1569 | raw: string | undefined, |
| 1570 | ): Effect.Effect<Record<string, unknown> | undefined, Error> => |
| 1571 | raw === undefined |
| 1572 | ? Effect.succeed(undefined) |
| 1573 | : parseJsonObjectInput(raw).pipe( |
| 1574 | Effect.mapError((error) => new Error(`Invalid --content JSON: ${error.message}`)), |
| 1575 | ); |
| 1576 | |
| 1577 | const ownMessage = (value: unknown): string => { |
| 1578 | if (typeof value === "string") return value.trim(); |
no test coverage detected