type JsonObject not limit Object key type like symbol
const a = {[Symbol(1)]: 1}
function test(v: JsonObject) {}
// issue
test(a) // no ts error, should throw ts error
type b = typeof a extends JsonObject ? true : false // true, should be false
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.
typescript: 5.1.6
type
JsonObject
not limit Object key type like symbolUpvote & Fund