(obj: T)
| 63 | |
| 64 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 65 | function parseNumbersInObject<T extends Record<string, any>>(obj: T) { |
| 66 | for (const key in obj) { |
| 67 | try { |
| 68 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 69 | (obj as any)[key] = parseInt(obj[key], 10); |
| 70 | } catch { |
| 71 | // do nothing |
| 72 | } |
| 73 | |
| 74 | if (typeof obj[key] === "object") { |
| 75 | parseNumbersInObject(obj[key]); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | return obj; |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * |
no outgoing calls
no test coverage detected
searching dependent graphs…