(input: unknown, keys: ReadonlyArray<string>)
| 113 | ); |
| 114 | |
| 115 | function readNestedString(input: unknown, keys: ReadonlyArray<string>): string | undefined { |
| 116 | let value = input; |
| 117 | for (const key of keys) { |
| 118 | if (typeof value !== "object" || value === null || !(key in value)) { |
| 119 | return undefined; |
| 120 | } |
| 121 | value = (value as Record<string, unknown>)[key]; |
| 122 | } |
| 123 | return typeof value === "string" && value.length > 0 ? value : undefined; |
| 124 | } |
| 125 | |
| 126 | function decodeVersionSource( |
| 127 | repo: ReferenceRepo, |
no outgoing calls
no test coverage detected