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"
Was this page helpful?