type-fest icon indicating copy to clipboard operation
type-fest copied to clipboard

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

Open doox911 opened this issue 5 months ago • 0 comments

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

doox911 avatar Mar 05 '24 14:03 doox911