首页 > 其他分享 >TS定义类型

TS定义类型

时间:2022-08-25 08:45:42浏览次数:35  
标签:string subCompanyId number TS 数组 类型 定义

export type OrcInsuranceRecordsTypeBarForm = {   id?: number   carNumber?: string   subCompanyId?: string   remarkDesc?: string   insuranceVos?: {     insuranceType?: number     insuranceBillcode?: string     insuranceCompany?: string     insuranceInsuredDate?: any     insuranceInsuredCost?: number     insuranceDueDate?: string   }[]   attachmentCos?: {     fileCategory?: string     fileSuffix?: string     fileName?: string     fileSize?: string     fileUrl?: string   }[] } 定义数组对象时   直接定义好对象后在后面加 [ ]  表示为数组 

标签:string,subCompanyId,number,TS,数组,类型,定义
From: https://www.cnblogs.com/baole/p/16623023.html

相关文章

  • Thread+isInterrupted+自定义(停止线程)
    1.interrupt终端线程publicstaticvoidmain(String[]args)throwsInterruptedException{//创建子线程Threadthread1=newThread(()->{......
  • 基于.NET6、FreeSql、若依UI、LayUI、Bootstrap构建插件式的CMS
    近几年,.net生态日益强大,特别是跨平台技术,性能提升,那真的是强大无比。为了日常能够快速开发,笔者基于基于.NET6、FreeSql、若依UI、LayUI、Bootstrap构建插件式的CMS,请大家......
  • 函数类型
    在Kotlin中像字符串String,整型Int一样,“函数”也是一种类型,叫做函数类型。函数具体是哪种类型,由传入的参数和返回值类型决定。匿名函数可以赋值给类型是函数的变量,变量的......
  • P5838 [USACO19DEC]Milk Visits G 【树上莫队】
    P5838[USACO19DEC]MilkVisitsG给定一颗树,每个点有点权,\(m\)次询问,每次求\(u\)到\(v\)之间的路径是否出现过权值为\(w\)的点。树上莫队板子题,我们需要一个dfs......
  • CSS盒子类型与JS简介
    今日内容盒子模型所有的标签都可以看成一个快递盒1.两个快递盒之间的距离 标签之间的距离 外边距 margin2.两个快递盒的厚度 标签的边框 边框 border3.盒子内物......
  • 类型转换
    由于Java是强类型语言,所以要进行有些运算的时候,需要用到类型转换//低——————————————————————————————————————>高byte,short,c......
  • ts get和set
       classUser{//get、set方法的成员变量命名时建议在前面加_private_fullName:string;//get的用法getfullName():string{re......
  • objects.get和objects.filter方法
    django的get是从数据库的取得一个匹配的结果,返回一个对象:用get方法来查询一个数据库里不存在的记录会报错用get去取得关联表的数据时,结果多于2条的话也会报错......
  • Ribbon:自定义负载均衡算法
    在springcloud同级,与启动类所在包不同级创建myrule包,写MyWTYRule配置  SpringCloud还允许您通过使用@RibbonClient声明其他配置(位于RibbonClientConfiguration之上......
  • 使用time.Time数据类型获取时间报错
    报错类型:Error1292:Incorrectdatetimevalue:'0000-00-00'forcolumn'created_at'atrow1在添加用户到数据库时,使用的字段created_at,类型为time.Time,无法正确的......