Created
June 26, 2024 09:17
-
-
Save itproto/68975181ba0d7cba2b7dc8897c7d5bfd to your computer and use it in GitHub Desktop.
Revisions
-
itproto created this gist
Jun 26, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ any void boolean number string null undefined bigint symbol string[] /* or Array<string> */ [string, number] /* tuple */ string | null | undefined /* union */ never /* unreachable */ unknown enum Color { Red, Green, Blue = 4 }; let c: Color = Color.Green This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ class Point { x: number y: number static instances = 0 constructor(x: number, y: number) { this.x = x this.y = y } }