Is there a way to rename the key in parse result
const t = type({name:"string"})
const result = t({name:"ankit"})
i want the result to be {alias:"ankit"}
how can i replace the key "name" with "alias"
2 Replies
No, you can't so this
You have do do it manually
This will work, Thank you