Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to pass a full array in partial write #809

Open
reczkok opened this issue Jan 28, 2025 · 0 comments
Open

Allow to pass a full array in partial write #809

reczkok opened this issue Jan 28, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@reczkok
Copy link
Collaborator

reczkok commented Jan 28, 2025

Currently, partialWrite expects:

public readonly '~reprPartial'!: {
    idx: number;
    value: InferPartial<TElement>;
  }[];

This means we need to pass an array od objects which can be inconvenient if the array is nested and someone does not want to write granularly to it. Currently it would require converting the array to an array of objects. We should allow to pass a full array just like in normal write.

@reczkok reczkok added the enhancement New feature or request label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant