Skip to content

V2: Update Angular example to latest Connect version#1974

Merged
timostamm merged 2 commits intov2from
tstamm/Update-Angular-example-to-latest-Connect-version
Oct 31, 2024
Merged

V2: Update Angular example to latest Connect version#1974
timostamm merged 2 commits intov2from
tstamm/Update-Angular-example-to-latest-Connect-version

Conversation

@timostamm
Copy link
Member

No description provided.

Signed-off-by: Timo Stamm <ts@timostamm.de>
transport: Transport
) {
return makeAnyClient(service, (method) => {
return makeAnyClient(service, (method: DescMethodUnary | DescMethodStreaming) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This explicit type annotation is necessary to give the compiler the information to narrow down to a DescMethodUnary, which createUnaryFn needs.

This is not ideal. We should update makeAnyClient to have this type information in it's signature.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating makeAnyClient in connectrpc/connect-es#1292.

@timostamm timostamm requested a review from smaye81 October 31, 2024 15:21
Signed-off-by: Timo Stamm <ts@timostamm.de>
@timostamm timostamm merged commit 40c9d01 into v2 Oct 31, 2024
@timostamm timostamm deleted the tstamm/Update-Angular-example-to-latest-Connect-version branch October 31, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants