Skip to content

Update transformation looses typing #1480

@jeroenwallaeys

Description

@jeroenwallaeys

Description

When using the update function from rx-angular/cdk/transformations to update an item in an array, that item is not typed anymore.

Steps to Reproduce the Issue

Create an array with an item, update set item with a new value using the update function. Check the instaceof the item.

Stackblitz example: https://stackblitz.com/edit/angular-ivy-dko7ba?file=src/app/app.component.ts

Example will create a collection, patch the collection using the update and log the results in the console. The last check will actually fail while it should:
image

You can actually see that in the console that the typing is not known anymore (foo -> object):
image

Environment

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions