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
note:thu_jun_19_2025 [2025/06/19 09:42] root1note:thu_jun_19_2025 [2025/06/19 09:42] (current) root1
Line 13: Line 13:
  
 {{ :note:screenshot_2025-06-19_at_17.41.18.png |}} {{ :note:screenshot_2025-06-19_at_17.41.18.png |}}
- 
-++++ 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/thu_jun_19_2025.1750326147.txt.gz
  • Last modified: 2025/06/19 09:42
  • by root1