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

JsonifiableObject & JsonifiableArray #972

Open
1 task done
mfulton26 opened this issue Oct 23, 2024 · 0 comments
Open
1 task done

JsonifiableObject & JsonifiableArray #972

mfulton26 opened this issue Oct 23, 2024 · 0 comments

Comments

@mfulton26
Copy link
Contributor

mfulton26 commented Oct 23, 2024

Type description + examples

I find Jsonifiable very handy but I often want to specify that the value shouldn't be a primitive. Can JsonifiableObject and JsonifiableArray be exported too?

Type source

The types are already defined but not currently exported:

type JsonifiableObject = {[Key in string]?: Jsonifiable} | {toJSON: () => Jsonifiable};
type JsonifiableArray = readonly Jsonifiable[];

Search existing types and issues first

  • I tried my best to look for it

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • The funding will be given to active contributors.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant