(raw: string)
| 1251 | const decodeJsonObjectString = Schema.decodeUnknownOption(JsonObjectFromString); |
| 1252 | |
| 1253 | const parseJsonContent = (raw: string): Record<string, unknown> | undefined => { |
| 1254 | if (raw === "{}") return undefined; |
| 1255 | const parsed = decodeJsonObjectString(raw); |
| 1256 | return Option.isSome(parsed) ? parsed.value : undefined; |
| 1257 | }; |
| 1258 | |
| 1259 | // --------------------------------------------------------------------------- |
| 1260 | // Passthrough surface |
no outgoing calls
no test coverage detected