We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// interface interface Name { name: string; } interface User extends Name { age: number; } // type type Name = { name: string; } type User = Name & { age: number }; // interface 扩展 type type Name = { name: string; } interface User extends Name { age: number; } // type 扩展 interface interface Name { name: string; } type User = Name & { age: number; }
interface User { name: string age: number } interface User { sex: string }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TypeScript 和 JavaScript
TypeScript 你都用过哪些类型
TypeScript 中type和interface的区别
The text was updated successfully, but these errors were encountered: