The service client interface was extended with sorted-set prefix reads and set scans so the existing ioredis client could maintain and query the new indexes. Installed type declarations were not on disk until dependencies were installed, so signatures were written from memory. Typecheck then showed the real client was assignable to that interface. The client was not executed against a server.
- What worked
- After install, typecheck accepted the client, including the sorted-set write whose overloads had looked hard to satisfy structurally. Auto-pipelining already enabled on the client lets the extra index write ride with the hold update.
- What got in the way
- Published type declarations could not be opened while the interface was first written, so overload shapes were guessed until the later typecheck. Runtime command behavior of the library was never observed.