note:thu_jun_19_2025

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
note:thu_jun_19_2025 [2025/06/19 09:29] root1note:thu_jun_19_2025 [2025/06/19 09:42] (current) root1
Line 11: Line 11:
  
 ====== The type hierarchy in TypeScript ====== ====== The type hierarchy in TypeScript ======
-{{url>https://kroki.io/mermaid/svg/eNptVE2L2zAQvedXCEG6MuxSKD0tdCHZfkLZlibpReTgD62jVpaMJGdr0v73jkey48Q-RDNo3sybNyNnuSTbthab3Mrao0s-S2FTmx9a8smm9WFRdifZvl8QsjU1hx_i3J7c3T2QlW5ZqtskRPFqp39r86JZE2yygNh3Kyvp5VE4PrjjMhtvpS6ZQ5NcJGD8qakyYZlGMxNfG6NEqlkW7GwFpSBfqZnYThfiWWpRQM_Rm0Ft2iozijk0cz3I8ov2LJOl1B5Vf5UeZqkcj85UcQwwenMQSpkbmozSRsp73Ns3E0CU3iO8bQSSf8t-idwjIw_-mD7cMIMmuYQjAKQI-5zmgtET0Wkl7knYDvlH5_CPKnWO0bwz8CpkBXJPHRSwj6aqjYMG-eCNe9lpaTSjsfxfEraMLGf80JMDWsQ_QVMFeUVWpSgCz8dGY8zx3hvT9HeMsj_3kSQh7x6iLuQbKgRN4MA8c28so1q8EIb4oC5QrqxNW8fRvN42tbpQhteQilx8jxQhA8OIZ5SHBm5jT_tQeVOLXKaKRzsu-9PIgh3hSM648FjEsftKuvM69AGKMyrgBFnKWHIiP0RxS9aqESTuaW28NxUPBgn357IdYLmEJJXihA6ydp0c3SLm_DHAZfwLmAauPpn-Ic-9p37zk1cw7GiyrzDayxnHGVxNI0hc_AfnC54H}} 
- 
- 
- 
-++++ Mermaid | 
-<code lang=mermaid> 
-%% TypeScript Type Hierarchy Graph 
-graph TD 
-  Top[Top Types] --> Any(any) 
-  Top --> Unknown(unknown) 
- 
-  Primitives[Primitive Types] --> String(string) 
-  Primitives --> Number(number) 
-  Primitives --> Boolean(boolean) 
-  Primitives --> Null(null) 
-  Primitives --> Undefined(undefined) 
-  Primitives --> Symbol(symbol) 
-  Primitives --> BigInt(bigint) 
- 
-  Literals[Literal Types] --> StringLiteral("'hello'") 
-  Literals --> NumberLiteral(42) 
-  Literals --> BooleanLiteral(true) 
- 
-  ObjectTypes[Object Types] --> Object(object) 
-  ObjectTypes --> Interface("{ name: string }") 
-  ObjectTypes --> Class("class Animal {}") 
- 
-  Composite[Composite Types] --> Union("string | number") 
-  Composite --> Intersection("Named & Aged") 
- 
-  Functions[Function Types] --> Function("(x: number) => string") 
-  Functions --> Constructor("new () => Animal") 
- 
-  Arrays[Array/Tuple Types] --> Array("number[]") 
-  Arrays --> Tuple("[string, number]") 
- 
-  Special[Special Types] --> Void(void) 
-  Special --> Never(never) 
-  Special --> Enum("enum Color { Red, Blue }") 
- 
-  Bottom[Bottom Type] --> Never 
- 
-  %% Relationships 
-  Any --> Primitives 
-  Unknown --> Primitives 
-  Primitives --> Literals 
-  ObjectTypes --> Composite 
-  Composite --> Functions 
-  Functions --> Arrays 
-  Arrays --> Special 
-  Special --> Bottom 
-</code> 
- 
-++++ 
  
 +{{ :note:screenshot_2025-06-19_at_17.41.18.png |}}
  
  
  • note/thu_jun_19_2025.1750325377.txt.gz
  • Last modified: 2025/06/19 09:29
  • by root1