1. let user: {
    2. name: string
    3. age?: number // 可选
    4. hello(): void
    5. } = {
    6. name: 'zhangsan',
    7. age: 18,
    8. hello() {
    9. console.log('Hello');
    10. }
    11. }