(bytes: Uint8Array)
| 204 | // NOTE: This function should not be called from native. On native, we should |
| 205 | // use `convertBytesToObj` in native/backup/conversion-utils.js instead. |
| 206 | function convertBytesToObj<T>(bytes: Uint8Array): T { |
| 207 | const str = new TextDecoder().decode(bytes.buffer); |
| 208 | return JSON.parse(str); |
| 209 | } |
| 210 | |
| 211 | export { |
| 212 | convertClientIDsToServerIDs, |
no test coverage detected