Closed ghost closed 5 years ago
In the type definition: subscribeToStreamFrom(streamId: string, fromEventNumber: number, ...)
Should be: subscribeToStreamFrom(streamId: string, fromEventNumber: number | null, ...)
It is missing the | null, for the fromEventNumber parameter. Without it, you cannot read from the beginning of the stream.
| null
fromEventNumber
Thanks for pointing that out, I've pushed a commit to resolve it
In the type definition: subscribeToStreamFrom(streamId: string, fromEventNumber: number, ...)
Should be: subscribeToStreamFrom(streamId: string, fromEventNumber: number | null, ...)
It is missing the
| null
, for thefromEventNumber
parameter. Without it, you cannot read from the beginning of the stream.