(raw: string)
| 1245 | const decodeJsonObjectString = Schema.decodeUnknownOption(JsonObjectFromString); |
| 1246 | |
| 1247 | const parseJsonContent = (raw: string): Record<string, unknown> | undefined => { |
| 1248 | if (raw === "{}") return undefined; |
| 1249 | const parsed = decodeJsonObjectString(raw); |
| 1250 | return Option.isSome(parsed) ? parsed.value : undefined; |
| 1251 | }; |
| 1252 | |
| 1253 | // --------------------------------------------------------------------------- |
| 1254 | // Passthrough surface |
no outgoing calls
no test coverage detected