Please enable JavaScript.
Coggle requires JavaScript to display documents.
typescript (lang (type (function, (p:T1) => T2 (this parameter…
typescript
lang
-
-
destructuring
array
[a, b] / [a, ...b] / [,a,b]
object
{a, b} / {a, ...b} / {a:x, b:y} / {a, b=1}
type
-
-
-
-
enum, enum Color {Red,Green,Blue}
-
-
intersection type, T1 & T2
-
-
-
-
-
type alias, type Name = string
function, (p:T1) => T2
optional, function(a?: string) {}
default, function(a="s") {}
rest, function(...a:string[]) {}
-
-
-
-
-