queryCollectionOptions type error missing compareOptions/comparisonOpts
Hi, I'm pretty new working with DB, I've been working with it for about a month now all perfect and today after upgrading to the latests version of DB, getting type errors when using queryCollectionOptions with createCollection:
Type 'Collection<T, string, any, any, any>' is missing properties: comparisonOpts, compareOptions
These properties were added in PR #762
Currently using
as any
as any
workaround but losing all type inference.
Regarding code, it doesn't matter if I add a full working collection or a minimum example, the error shows up. The code in the first screenshot is the todos example in the JSDocs of the queryCollectionOptions for testing.
I'm adding a third image with the workaround I'm using, as any to avoid the error showing up and the type inference to get type safety again since without it I'm getting something like:
name: {} | undefined
I'm not sure if this is a "me" issue or something else.
(Thank you for this amazing library and sorry if I'm not reporting this correctly, literally my first message in the discord)