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

Add WritableDeep type #540

Merged
merged 7 commits into from Feb 17, 2023
Merged

Add WritableDeep type #540

merged 7 commits into from Feb 17, 2023

Conversation

TomerAberbach
Copy link
Contributor

The implementation, documentation, and tests are a bit of a mash up of stuff taken from Writable<T> and ReadonlyDeep<T>.

Closes #260

@TomerAberbach
Copy link
Contributor Author

TomerAberbach commented Jan 11, 2023

Thought: should I add a test that checks that WritableDeep<ReadonlyDeep<T>> = T for a fully writable T?

@sindresorhus
Copy link
Owner

should I add a test that checks that WritableDeep<ReadonlyDeep> = T for a fully writable T?

source/writable-deep.d.ts Outdated Show resolved Hide resolved
@TomerAberbach
Copy link
Contributor Author

should I add a test that checks that WritableDeep = T for a fully writable T?

Did you accidentally leave out your reply?

@sindresorhus
Copy link
Owner

Did you accidentally leave out your reply?

Yes. Sorry. I don't know what happened there.

@sindresorhus
Copy link
Owner

should I add a test that checks that WritableDeep = T for a fully writable T?

Yes, that would be great.

source/writable-deep.d.ts Outdated Show resolved Hide resolved
@sindresorhus sindresorhus merged commit 7538c05 into sindresorhus:main Feb 17, 2023
@sindresorhus
Copy link
Owner

Looks great. Thank you 🙏

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.

Add WritableDeep<T> - The inverse of ReadonlyDeep<T>
2 participants