Tagged articles
3 articles
Page 1 of 1
Java Architecture Stack
Java Architecture Stack
Nov 22, 2024 · Fundamentals

Why ArkTS Rejects Structural Typing and What It Means for Developers

This article explains the concept of structural typing in TypeScript, contrasts it with ArkTS's nominal typing approach, provides code examples illustrating compatibility rules, and analyzes why Huawei chose to disable structural typing in ArkTS, highlighting the trade‑offs involved.

HarmonyOSNominal TypingStructural Typing
0 likes · 10 min read
Why ArkTS Rejects Structural Typing and What It Means for Developers
IT Services Circle
IT Services Circle
Jan 13, 2024 · Fundamentals

Understanding TypeScript’s Type System: Common Pitfalls and a Systematic Learning Path

The article recounts the author’s repeated struggles with TypeScript, explains why treating it merely as a JavaScript superset leads to confusion, and provides a step‑by‑step, concept‑focused approach—including structural typing, conditional types, and practical code examples—to master the language’s type system.

Conditional TypesStructural TypingTypeScript
0 likes · 8 min read
Understanding TypeScript’s Type System: Common Pitfalls and a Systematic Learning Path
Goodme Frontend Team
Goodme Frontend Team
Aug 8, 2023 · Frontend Development

How TypeScript Types Mirror Set Theory: A Deep Dive into Type Assignability

This article explores how TypeScript’s type system can be understood through set theory, illustrating type relationships, assignability, union and intersection types, conditional types, structural typing, and type assertions with detailed examples and visual diagrams to help developers master TypeScript’s static typing concepts.

Conditional TypesIntersection TypesSet Theory
0 likes · 26 min read
How TypeScript Types Mirror Set Theory: A Deep Dive into Type Assignability