当前位置:网站首页>接口(优化类型注解)
接口(优化类型注解)
2022-06-22 15:22:00 【xiao_zhu_ting_feng】
接口(优化类型注解,为对象的类型注解命名)
1.使用interface关键字,直接成为了一个模块
interface IUser {
name:string
age:number
}
在对象中使用(直接在对象名后加:IUser即可)
let p1: IUser = {
name: 'jack',
age:18
}
边栏推荐
- Safari兼容性问题总结
- NiO service multithreaded version
- SAP ABAP internal tables: create, read, populate, copy and delete-06
- 默认函数控制 =default 与 =delete
- 【C语言】深度剖析整型和浮点型在内存中的存储
- SAP value process & help request process-011
- SLAM十四讲之第6讲--非线性优化
- Consumption monitoring of Prometheus monitoring [consult exporter]
- 面试题之JS判断数据类型的方法
- 3. abstract class (shape)
猜你喜欢

Unity game optimization (version 2) learning record 8

实现一个Container全局组件步骤(给还不会使用组件的新手一个思路,大佬绕道)

Machine learning notes - Hagrid - Introduction to gesture recognition image data set

Runtime -- explore the nature of classes, objects, and classifications

C语言贪吃蛇

大话局部性原理

SAP ABAP 中的 Smart Forms-014

SAP 脚本教程:SE71、SE78、SCC1、VF03、SO10-013

Static assertion static_ assert

短视频源码开发,优质的短视频源码需要做好哪几点?
随机推荐
买网红雪糕的我,成了大冤种
SAP ABAP 中 OpenSQL和Native SQL-05 本教程的目的不是教您 SQL 或数据库概念
[Shanda conference] definitions of some basic tools
短视频源码开发,优质的短视频源码需要做好哪几点?
SAP ABAP dialog programming tutorial: module pool in -09
SAP ABAP BAPI-016
面试题之 <img>标签 的 title 和 alt 有什么区别
论催收系统的任务调度设计
Static assertion static_ assert
SAP ABAP 对话框编程教程:中的模块池-09
User exit and customer exit in SAP ABAP -015
SAP ABAP report programming-08
接口幂等性设计
SAP ABAP 报告编程-08
Basic knowledge of audio and video | analysis of ANS noise suppression principle
What is SAP ABAP? Type, ABAP full form and meaning
Linux安装mysql
SLAM十四讲之第6讲--非线性优化
数睿数据受邀参与南通企业数字化转型研讨会
nio服务多线程版本