TypeScript
Post in
三 01 十二月 2021
interface VS type
interface Name {
name: string
}
type Name = {
name: string
}
- 拓展(extends)
“`ts // interface extends interface interface User extends Name { age: number }
// interface extends type interface User extends …