(keys, cacheAssoc)
| 58 | * @returns {(keyof T)[]} keys |
| 59 | */ |
| 60 | const getCachedKeys = (keys, cacheAssoc) => { |
| 61 | let root = cache.get(cacheAssoc); |
| 62 | if (root === undefined) { |
| 63 | root = new ObjectStructure(); |
| 64 | cache.set(cacheAssoc, root); |
| 65 | } |
| 66 | let current = root; |
| 67 | for (const key of keys) { |
| 68 | current = current.key(key); |
| 69 | } |
| 70 | return current.getKeys(keys); |
| 71 | }; |
| 72 | |
| 73 | class PlainObjectSerializer { |
| 74 | /** |