在线时间:8:00-16:00
132-9538-2358
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
TypeScript 中,类型(interface, type)是可以声明成泛型的,这很常见。
interface Props<T> { content: T; }
这表明 Props 接口定义了这么一种类型:
Props
content
T
type StringProps = Props<string>; let props: StringProps; props = { //
评论
请发表评论