( obj: JsonObject, key: string, path: string, )
| 208 | } |
| 209 | |
| 210 | function readNullableString( |
| 211 | obj: JsonObject, |
| 212 | key: string, |
| 213 | path: string, |
| 214 | ): ReproParseResult<string | null> { |
| 215 | const value = obj[key]; |
| 216 | if (value === null || typeof value === "string") { |
| 217 | return ok(value); |
| 218 | } |
| 219 | return fail("ZR_REPRO_INVALID_BUNDLE", path, "expected string or null"); |
| 220 | } |
| 221 | |
| 222 | function readNullableNonNegativeInteger( |
| 223 | obj: JsonObject, |
no test coverage detected