Im moving some server code to typescript and im getting the following error.
await CashTransactions.removeAsync({ _id: params.objectId }); // Here I get the error
await CashAccounts.updateAsync(
{ _id: transaction.cashAccountId }, // Here I get the error
{ $inc: { value } },
);
Type 'string' is not assignable to type 'Condition<ObjectId> | undefined'.ts(2322)
As far as I know Meteor uses strings and not Mongo ObjectId. Do you guys think this is an error or am I doing something wrong?