type-fest
type-fest copied to clipboard
Questions about the types located in the file `/source/basic.d.ts`
Source: https://github.com/sindresorhus/type-fest/blob/main/source/basic.d.ts
- Why do we specify
?:
when the property might not exist due to| undefined
- Please, provide a practical use case types:
JsonValue
,JsonPrimitive
,JsonObject
,JsonArray
, so how can one perform type conversion usingas
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.