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

fix undefined values in objects #97

Closed
Coobaha opened this issue Oct 31, 2023 · 0 comments · Fixed by #98
Closed

fix undefined values in objects #97

Coobaha opened this issue Oct 31, 2023 · 0 comments · Fixed by #98

Comments

@Coobaha
Copy link
Owner

Coobaha commented Oct 31, 2023

regression for undefined values in objects. I think it should make Jsonlike key optional, like:

type Obj = {
  a: string | null | undefined
}

type ResultJsonLikeType = {
 a?: string | null
}
declare const obj: Obj;

// works as JSON.strinigfy(obj) will remove undefined values
req.send(obj) // results in a {} response
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 a pull request may close this issue.

1 participant