Skip to content

Version 1.2.1 broke my client stream code in Typescript #948

Open
@kjellaso

Description

@kjellaso

Hi

When yarn updated from 1.2.0 to 1.2.1 it broke the streaming api. I now get the following error:

No overload matches this call.
The last overload gave the following error.
Argument of type '"data"' is not assignable to parameter of type '"end"'. TS2769

32 |   const stream = notificationService.subscribe(new SubscribeRequest(), undefined);
33 |   

34 | stream.on("data", (response: NotificationMessage) => {
| ^
35 | if (

When looking at the compiled code, it doesn't seem that it has been updated to use the new <REQ,RESP> generics. I also have updated to 1.2.1 for the code generator

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions