KELEN / blog-comment

0 stars 0 forks source link

ts常用的类型关键字和应用场景 #147

Open KELEN opened 6 months ago

KELEN commented 6 months ago

https://www.kelen.cc/posts/ts-keywords

关键字在 TypeScript 中具有特定的含义,用于定义类型、类、接口、函数等。例如,number、string、boolean 是 TypeScript 中的关键字,用于声明基本类型。同时,还有其他关键字如 interface、class、enum、function 、in、keyof 和 typeof 等等。