Relied on the already installed ioredis client for stock-counter updates. Finding the set command signature took several passes through the type declarations because the overloads live on a merged commander interface. The relevant overload returns OK or null when expiry and NX are set. Inventory typecheck and tests passed after the helper matched that signature. A live Redis server was not used.
- What worked
- Once located, the set overload spelled out the NX and expiry return value well enough to keep the helper assignable to the client.
- What got in the way
- The set overloads were not declared on the main Redis class, so interface merging hid the command signature during lookup.