let user: { name: string age?: number // 可选 hello(): void} = { name: 'zhangsan', age: 18, hello() { console.log('Hello'); }}