
عنوان:
Programming TypeScript
نویسنده:
Boris Cherny
انتشارات:
O′Reilly
نسخه:
حجم:
21MB
معرفی کتاب:" برنامهنویسی با TypeScript "
کتاب Programming TypeScript نوشته بوریس چرنی یک راهنمای عملی برای درک و تسلط بر تایپاسکریپت است. این زبان که بهعنوان یک لایهای از تایپ ایستای تدریجی روی جاوااسکریپت عمل میکند، توسط شرکتهای بزرگی مانند فیسبوک، گوگل و مایکروسافت برای مدیریت بهتر کدهای بزرگ و تیمهای توسعه بزرگتر ایجاد شده است.را انجام دهند:
- مبانی تایپاسکریپت: معرفی انواع دادهها و عملگرهای تایپ
- مفاهیم پیشرفته: درک سیستم تایپ پیچیده تایپاسکریپت، مدیریت خطاها و برنامهنویسی ناهمگام
- کاربرد عملی: استفاده از تایپاسکریپت در فریمورکهای فرانتاند و بکاند، مهاجرت از جاوااسکریپت به تایپاسکریپت و اجرای پروژه در محیط عملیاتی
مناسب برای چه کسانی؟ اگر تجربهی متوسط در جاوااسکریپت دارید و میخواهید کدهای خود را ایمنتر، مقیاسپذیرتر و قابلفهمتر کنید، این کتاب راهنمای ایدهآلی برای شما خواهد بود.
فهرست مطالب
- Preface
- 1. Introduction
- 2. TypeScript: A 10_000 Foot View
- The Compiler
- The Type System
- Code Editor Setup
- index.ts
- Exercises
- 3. All About Types
- Talking About Types
- The ABCs of Types
- Summary
- Exercises
- 4. Functions
- Declaring and Invoking Functions
- Polymorphism
- Type-Driven Development
- Summary
- Exercises
- 5. Classes and Interfaces
- Classes and Inheritance
- super
- Using this as a Return Type
- Interfaces
- Classes Are Structurally Typed
- Classes Declare Both Values and Types
- Polymorphism
- Mixins
- Decorators
- Simulating final Classes
- Design Patterns
- Summary
- Exercises
- 6. Advanced Types
- Relationships Between Types
- Totality
- Advanced Object Types
- Advanced Function Types
- Conditional Types
- Escape Hatches
- Simulating Nominal Types
- Safely Extending the Prototype
- Summary
- Exercises
- 7. Handling Errors
- Returning null
- Throwing Exceptions
- Returning Exceptions
- The Option Type
- Summary
- Exercises
- 8. Asynchronous Programming, Concurrency, and Parallelism
- JavaScript’s Event Loop
- Working with Callbacks
- Regaining Sanity with Promises
- async and await
- Async Streams
- Typesafe Multithreading
- Summary
- Exercises
- 9. Frontend and Backend Frameworks
- Frontend Frameworks
- Typesafe APIs
- Backend Frameworks
- Summary
- 10. Namespaces.Modules
- A Brief History of JavaScript Modules
- import, export
- Namespaces
- Declaration Merging
- Summary
- Exercise
- 11. Interoperating with JavaScript
- Type Declarations
- Gradually Migrating from JavaScript to TypeScript
- Type Lookup for JavaScript
- Using Third-Party JavaScript
- Summary
- 12. Building and Running TypeScript
- Building Your TypeScript Project
- Running TypeScript on the Server
- Running TypeScript in the Browser
- Publishing Your TypeScript Code to NPM
- Triple-Slash Directives
- Summary
- 13. Conclusion
- A. Type Operators
- B. Type Utilities
- C. Scoped Declarations
- D. Recipes for Writing Declaration Files for Third-Party JavaScript Modules
- E. Triple-Slash Directives
- F. TSC Compiler Flags for Safety
- G. TSX
- Index
مشخصات
نام کتاب
Programming TypeScript
نویسنده
Boris Cherny
انتشارات
O′Reilly
تاریخ انتشار
2019
ISBN
1492037656
چاپ
اول
تعداد صفحات
435
زبان
انگلیسی
فرمت
حجم
21MB
موضوع
Programming-TypeScript