-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
What problem are you facing?
Typings are not entirely correct for `createIndexes` API or there's another breaking change missing
What driver and relevant dependency versions are you using?
Version 4
Steps to reproduce?
This reveals a typing error in `expireAfterSeconds` but that used to be fine:
return subscriptionCollection.createIndexes([ { key: { event: 1, }, name: 'event', }, { expireAfterSeconds: 2 * 3600, // Delete the subscription after 2 hours have passed since creation. key: { createdAt: 1, }, }, ]);