You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
https://github.com/microsoft/TypeScript/blob/master/doc/spec.md
Types
0x10
,12
true
,false
"Hello"
* undefinedenum { a = 1, b, c }
Expression
let a: number = 1;
,let a: number[] = [1, 2, 3]
++
/--
+
/-
/~
!
typeof
*
,/
,%,
–
,<<
,>>
,>>>
,&
,^
, and|
operators<
,>
,<=
,>=
,==
,!=
,===
, and!==
operatorsin
&&
and||
test ? expr1 : expr2
*=
,/=
,%=
,+=
,-=
,<<=
,>>=
,>>>=
,&=
,^=
,|=
Destructuring Assignment:[x, y] = [y, x];
Statements
For-In StatementsWith StatementsFunction
Interfaces
Class
Build in functions
Extra
在实现 TS 的语法过程中可以先只支持 number 类型, 如果过早考虑其他类型会遇到大量类似 string + number = ? 这类的奇怪特性.
The text was updated successfully, but these errors were encountered: