รายละเอียด : TypeScript Programming (Integrative-Generative AI Edition)
TypeScript Programming คู่มือฉบับสมบูรณ์ที่พาคุณก้าวสู่โลกการพัฒนาโปรแกรมด้วย TypeScript อย่างมั่นใจและเป็นระบบ เรียนรู้ตั้งแต่พื้นฐานแนวคิด วิธีใช้งาน ไปจนถึงเทคนิคขั้นสูงที่นักพัฒนามืออาชีพใช้สร้างซอฟต์แวร์คุณภาพสูง หนังสือเล่มนี้จัดลำดับเนื้อหาอย่างละเอียด พร้อมตัวอย่างโค้ดจริงและคำอธิบายเชิงลึก ครอบคลุมทุกประเด็นสำคัญของภาษา TypeScript
บทที่ 1 รู้จักกับ TypeScript (Introduction to TypeScript) – เริ่มต้นรู้จัก TypeScript, ความแตกต่างกับ JavaScript, ข้อดีของการใช้ TypeScript, การติดตั้ง, การตั้งค่า tsconfig.json, และทดลองรันโปรแกรมแรกด้วย tsc และ ts-node
1
บทที่ 2 ตัวแปรและชนิดข้อมูลพื้นฐาน (Variables and Basic Data Types) – ทำความเข้าใจการประกาศตัวแปร, ชนิดข้อมูลหลัก เช่น string, number, boolean, และชนิดพิเศษ เช่น any, unknown, never
28
บทที่ 3 ฟังก์ชันพื้นฐาน (Basic Functions) – เจาะลึกการประกาศฟังก์ชัน, การกำหนดชนิดพารามิเตอร์, Optional, Default, และ Rest Parameters, การเขียน Arrow Functions
64
บทที่ 4 Array และ Tuple (Array and Tuple) – อธิบายโครงสร้างข้อมูล Array และ Tuple การเข้าถึงสมาชิก การประกาศหลายรูปแบบ
101
บทที่ 5 Object Type พื้นฐาน (Object Type) – การกำหนดรูปแบบอ็อบเจกต์, การใช้ Optional และ Readonly Property
124
บทที่ 6 Interface และ Type Alias (Interface and Type Alias) – ความสำคัญของ Interface และ Type Alias, การใช้ Union และ Intersection Types, วิธีเลือกใช้ระหว่างสองแนวทาง
154
บทที่ 7 Class และ OOP (Class and OOP) – พื้นฐานการสร้าง Class, Constructor, Property, Method, Access Modifiers, การใช้ this และ Context
187
บทที่ 8 Inheritance และ Abstract Class (Inheritance and Abstract Class) – การสืบทอดคลาส, การใช้ extends, super, การประกาศ Abstract Class และการ Implements Interface
230
บทที่ 9 Enum และ Literal Types (Enum and Literal Types) – สร้าง Enum แบบ Numeric, ใช้ Literal Type เช่น 'small' | 'medium' | 'large', และวิธี Validate ค่า
267
บทที่ 10 Generics (Generics) – เรียนรู้ Generics สำหรับเขียนโค้ดที่ Reusable, การจำกัดชนิดข้อมูลด้วย Constraints
303
บทที่ 11 Union, Intersection, Type Guard (Union, Intersection, Type Guard) – ใช้ Union/Intersection Types, Type Guards, และ User-Defined Type Guard ตรวจสอบชนิดข้อมูลอย่างปลอดภัย
339
บทที่ 12 Modules, Import/Export (Modules, Import/Export) – แนวทางการจัดระเบียบโครงการด้วย Modules, การใช้ Named และ Default Export, Path Alias
378
บทที่ 13 Advanced Type Features (Advanced Type Features) – เจาะลึก Mapped Types, Conditional Types, Template Literal Types และ Recursive Types
417
บทที่ 14 Utility Types (Utility Types) – รู้จัก Utility Types มาตรฐาน เช่น Partial, Required, Readonly, Pick, Omit และการสร้าง Utility Types เอง
449
บทที่ 15 Decorators (Experimental) (Decorators (Experimental)) – การใช้งาน Decorators, การเปิดใช้งานใน tsconfig.json, และการประยุกต์กับ Dependency Injection
482
บทที่ 16 Mixins (Mixins) – เทคนิค Multiple Inheritance ด้วย Mixins, การแยกพฤติกรรมออกเป็นคลาสย่อย, และผสานการใช้ Interface
536
บทที่ 17 Advanced Type Nar
24 ต.ค. 2568