I wrote this code
type myRecord = {
id: int,
name: string
}
let x = {id: 10, name: "test"}
let {aId, aName} = x
Why doesn’t this compile, basically I want to de-structure the record but I want to use alias names rather than the actual name in the record.