(key: unknown)
| 1281 | } |
| 1282 | |
| 1283 | function encodeKeyForUnionBranch(key: unknown): string { |
| 1284 | if (typeof key === `string`) { |
| 1285 | return `string:${key}` |
| 1286 | } |
| 1287 | if (typeof key === `number`) { |
| 1288 | return `number:${String(key)}` |
| 1289 | } |
| 1290 | if (typeof key === `bigint`) { |
| 1291 | return `bigint:${String(key)}` |
| 1292 | } |
| 1293 | return `${typeof key}:${JSON.stringify(key)}` |
| 1294 | } |
| 1295 | |
| 1296 | function processFrom( |
| 1297 | from: CollectionRef | QueryRef, |
no outgoing calls
no test coverage detected