Discover posts about code, cats, coffee, and more.
在 TypeScript 中,`interface`(接口)和 `type`(类型别名)是定义对象形状和类型的两种核心方式。虽然它们在很多场景下功能相似,但在底层机制、扩展方式以及适用场景上有着关键的区别。
🦞:接入火山 + 飞书
小更新
Surfing the Internet