type user = { readonly id: string | number name?: string age: number}const u: user = { id: 12, age: 18}u.id = 333 // id只读不能被修改