当前位置:网站首页>接口(优化类型注解)
接口(优化类型注解)
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
}
边栏推荐
- 【C语言】库函数qsort的使用
- Implementing factory mode using enumeration
- SAP ABAP data dictionary tutorial se11: tables, locked objects, views, and structures-03
- SAP abap 数据类型,操作符和编辑器-02
- 用递归法求Fibonacci数列第n项的值
- SAP ABAP report programming-08
- 超出文本部分用省略号表示
- [Shanda conference] definitions of some basic tools
- 什么是RESTful,REST api设计时应该遵守什么样的规则?
- LeetCode_回溯_动态规划_中等_131.分割回文串
猜你喜欢

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

C语言贪吃蛇

数睿数据受邀参与南通企业数字化转型研讨会

数睿数据荣获第二届ISIG中国产业智能大会两项年度大奖

ABAP query tutorial in sap: sq01, sq02, sq03-017

SAP ABAP 表控制与示例-07

北京恢复堂食半月记:如何重燃门店经营烟火气

SAP script tutorial: se71, se78, SCC1, vf03, so10-013

Google Chrome small details

超出文本部分用省略号表示
随机推荐
视频爆炸时代,谁在支撑视频生态网高速运行?
十九、Xv6上下文切换(上下文切换的实现;状态机的封装与恢复)
SAP web service cannot log in to SOA management page with soamanager
天翼云乘风新基建,构建数字化转型“4+2”能力体系
音视频基础知识|ANS 噪声抑制原理解析
浙江创投圈的“半壁江山”,还得是国资
面试题之JS判断数据类型的方法
[Shanda conference] use typescript to reconstruct the project
Focus on creating a net red product. The xinjietu x70s is newly launched, starting from 87900
SAP 脚本教程:SE71、SE78、SCC1、VF03、SO10-013
北京恢复堂食半月记:如何重燃门店经营烟火气
C语言贪吃蛇
Smart forms-014 in SAP ABAP
为数字添加千分位符号(金额千分位)
Modularity in SAP ABAP: macros, subroutines and function modules -04
Machine learning notes - Hagrid - Introduction to gesture recognition image data set
CUMT study diary - quick notes of digital image processing examination
5. reading and writing of documents (students)
SLAM十四讲之第6讲--非线性优化
Test for API