Typescript should understand that we have a rest parameter, but it doesn't. It wasn't like that before upgrading to v2. I suspect it to be related to the addition of the option parameter.
Additional context
Add any other context about the problem here.
Describe the bug A clear and concise description of what the bug is.
We are caching the events before sending them to the eventStore.pushGroupEvent
Our Encapsulation of Castore
```typescript import { Reducer, EventStore as CastoreEventStoreImpl, EventType, EventDetail, EventTypeDetails, $Contravariant, Aggregate, EventStorageAdapter, OptionalTimestamp, } from '@castore/core'; import { inject } from '@warehouse/di-container'; import { EventStore } from '../EventStore'; import { AggregateRoot } from '../AggregateRoot'; import DateAdapterImpl, { DateAdapter } from '../DateAdapter'; import { storageAdapterToken } from '../StorageAdapters/StorageAdapter'; export class EventStoreImpl< EVENT_STORE_ID extends string = string, EVENT_TYPES extends EventType[] = EventType[], EVENT_DETAILS extends EventDetail = EventTypeDetailsTo Reproduce
Expected behavior
Typescript should understand that we have a rest parameter, but it doesn't. It wasn't like that before upgrading to v2. I suspect it to be related to the addition of the option parameter.
Additional context Add any other context about the problem here.