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

Questions about the types located in the file /source/basic.d.ts #825

Open
doox911 opened this issue Mar 5, 2024 · 0 comments
Open

Questions about the types located in the file /source/basic.d.ts #825

doox911 opened this issue Mar 5, 2024 · 0 comments

Comments

@doox911
Copy link

doox911 commented Mar 5, 2024

Source: https://github.com/sindresorhus/type-fest/blob/main/source/basic.d.ts

  1. Why do we specify ?: when the property might not exist due to | undefined
  2. Please, provide a practical use case types: JsonValue, JsonPrimitive, JsonObject, JsonArray, so how can one perform type conversion using as after JSON.parse?

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant