Typescript All In One

TypeScript 3.5 is now available.

https://www.typescriptlang.org/#download-links

# INSTALL
$ npm i -g typescript # COMPILE
$ tsc helloworld.ts

https://github.com/xgqfrms/ts

TypeScript & Interface & Type alias

https://github.com/xgqfrms/ts/issues/6

TypeScript Types

https://www.typescriptlang.org/docs/handbook/basic-types.html

https://www.typescriptlang.org/docs/handbook/advanced-types.html


Boolean
Number
String
Array Tuple
Enum
Any
Void Null and Undefined Never Object // Type assertions
// A note about ‘let’
Intersection Types

Union Types

Type Guards and Differentiating Types
User-Defined Type Guards
Using type predicates
Using the in operator
typeof type guards
instanceof type guards Nullable types
Optional parameters and properties
Type guards and type assertions Type Aliases
Interfaces vs. Type Aliases String Literal Types Numeric Literal Types Enum Member Types Discriminated Unions Exhaustiveness checking
Polymorphic this types Index types
Index types and index signatures Mapped types
Inference from mapped types Conditional Types
Distributive conditional types
Type inference in conditional types
Predefined conditional types

https://www.typescriptlang.org/docs/handbook/utility-types.html

Partial<T>
Readonly<T>
Record<K,T>
Pick<T,K>
Omit<T,K>
Exclude<T,U>
Extract<T,U>
NonNullable<T>
Parameters<T>
ConstructorParameters<T>
ReturnType<T>
InstanceType<T>
Required<T>
ThisParameterType
OmitThisParameter
ThisType<T>


xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


最新文章

  1. 安装lxml时gcc: internal compiler error: Killed (program cc1)的解决方法
  2. C# 匿名函数 详解
  3. windows核心编程---第五章 线程的基础
  4. CSS:CSS定位和浮动
  5. 【WCF 1】WCF框架宏观了解
  6. java开发--反射技术
  7. Java 碰撞的球 MovingBall (整理)
  8. 桂电在线-转变成bootstrap版2(记录学习bootstrap)
  9. android 管理Bitmap内存 - 开发文档翻译
  10. C#方法同步 [MethodImpl(MethodImplOptions.Synchronized)]
  11. Python数据处理——numpy_3
  12. Windows Server 2016-命令行Ntdsutil迁移FSMO角色
  13. 1.4 random模块
  14. 敏捷冲刺每日报告——Day5
  15. 关于自定义view--实现自定义水波纹效果
  16. redis持久化AOF与RDB
  17. Flutter 即学即用系列博客——02 一个纯 Flutter Demo 说明
  18. window mysql安装
  19. Java线程池应用及原理分析(JDK1.8)
  20. 【转】GDB中应该知道的几个调试方法

热门文章

  1. 多线程c++11编程题目
  2. Python基础(变量、字符编码、数据类型)
  3. jasper使用table组件设计复杂的表头
  4. 玩遍博客网站,我整理了 Hexo 及其流行的风格主题
  5. Office系列---将Office文件(Word、PPT、Excel)转换为PDF文件,提取Office文件(Word、PPT)中的所有图片
  6. 查看Linux用的桌面是GNOME、KDE或者其他(转)
  7. 数组赋值到select
  8. 浅聊ARP
  9. 1.Centos7修改主机名
  10. NMAP学习笔记