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

TypeScript: toJSON() return type on MapSchema / ArraySchema #162

Open
endel opened this issue Nov 29, 2023 · 0 comments · May be fixed by #174
Open

TypeScript: toJSON() return type on MapSchema / ArraySchema #162

endel opened this issue Nov 29, 2023 · 0 comments · May be fixed by #174
Labels
bug Something isn't working

Comments

@endel
Copy link
Member

endel commented Nov 29, 2023

The return type of .toJSON() of MapSchema and ArraySchema should be respected rather than returning any.

image
image


This is particularly useful on React applications where .toJSON() can be used to set to reflect local component state.

@endel endel added the bug Something isn't working label Nov 29, 2023
@johannes-lindgren johannes-lindgren linked a pull request Jul 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant