TypeScript - 2023 | Updated 2024
Ushbu darslik TypeScript'dan bilishingiz kerak bo'lgan barcha mavzularni o'z ichiga oladi. Umid qilamizki ushbu darslikdan so'ng boshqa hech qanday darslikni ko'rishga ehtiyojingiz bo'lmaydi.
Author: Mavzular Webbrain Academy bosh mentori Sardorbek Muhtorov tamonidan tayorlangan.
Qo'llanmalar: Darslik tayorlashda typescriptlang.org typescript tutorial va bazi youtube manbalaridan foydalanildi.
Muhim eslatma: Darslik foydalanish uchun hamma ko'radigan(public) qilib qo'yilgan. Darslikdan foydalanishning yagona majburiyati, darslik manbasi Webbrain Academy'dan olinganligini aniq va mavhum bo'lmagan holda eslatib o'tish shart!
1 - dars | TypeScriptga Kirish | YouTube Link
β Darslikni o'rganish uchun talablar.
β TypeScript nima?
β TypeScript bugungi kunda qanchalik muhim?
β TypeScript darsligi nimalarni o'z ichiga oladi?
β Interview Savollari...
2 - dars | Installation | YouTube Link
β typescript'ni o'rnatish.
β TypeScript Compilers
β Watch compilation / shorten form
β Creating and modifying tsconfig.json
β target
/ outDir
/ rootDir
/ include
3 - dars | Data Types | Basics | YouTube Link
β Primitive data types.
β Non primitive data types.
β Manual and automatic data types
β BigInt bug with target
.
β tsconfig strict
/ strictNullChecks
4 - dars | Unions | YouTube Link
β What is the unions?
β static value unions.
β Optional sign.
β Any type.
β Language select type example.
β Interview Questions
5 - dars | Type Aliases | Interface | YouTube Link
β Type Aliases
β Interface
β extends
and &
β Type vs Interface / 3 differences.
β Basic Narrowing.
β Interview Questions
6 - dars | Array | YouTube Link
β Two type of array syntax
β Array vs Tuple
β Array narrowing
β Array Loops
β Array with objects
7 - dars | Tuple | YouTube Link
β Array vs Tuple
β Accessing tuple
β Array Loops
β Optional with Tuple
β Interview Questions
8 - dars | Enum | YouTube Link
β What is Enum?
β Numeric / string / heterogeneous Enums
β Const Enum and Pitfals
β Interview Questions
9 - dars | any, unknown, never | YouTube Link
β What is any type?
β what is the unknown type?
β what is the never type?
β Interview Questions
10 - dars | Object - 1 | Basics | YouTube Link
β Object explanation.
β Optional keys with object keys.
β readOnly property.
β Union keys.
β Extends multiple types.
β readOnly to Writable.
β function usage with object.
11 - dars | Object - 2 | Advanced | YouTube Link
β Index signature with object.
β index signature with arrays.
β Dynamic table explanation.
β Dynamic object access.
β keyof vs typeof vs keyof typeof.
β Interview Questions.
12 - dars | Functions Basics | YouTube Link
β function declaration / anon function .
β function return type.
β Params / rest operator.
β Type and Interface with functions
β call signature / constructor signature
13 - dars | Functions Advanced | YouTube Link
β function overloading.
β Param type overload.
β Conditional type
β Overloading drawbacks
β Overload vs Union.
β Interview Questions.
14 - dars | Narrowing | YouTube Link
β What is narrowing?
β what is type guards?
β Equality type checking
β Instanceof type checking
β Discrimination unions.
β Important sign ( ! )
β Interview Questions
15 - dars | keyof | typeof | YouTube Link
β keyof use cases.
β typeof use cases
β keyof typeof use cases.
β real project case example
β keyof vs unions.
β keyof with as.
β Index signature
β Built-in ReturnType type
β Interview Questions
16 - dars | class -1 | Basics | YouTube Link
β what is the class?
β properties usage in class.
β class ts config / strictPropertyInitialization
β readOnly with properties
β constructor overloading
β methods overloading
β setter / getter
β setter / getter with narrowing.
17 - dars | class - 2 | Advanced | YouTube Link
β Type aliases / implements
β Type aliases with constructor
β Inheritance / multi inheritance
β implements with extends
18 - dars | class - 3 | Advanced | YouTube Link
β Abstract classes
β Static classes
β public / private / protected
β private vs #
β private drawback.
β InstanceType
19 - dars | Namespace | Module | YouTube Link
β Module nima ?
β export / import
β export default / import default
β namespace nima?
β Tripple slash
β tsconfig.json -> outDir / outFile
β module -> AMD
β Interview Questions
20 - dars | Type Assertion | YouTube Link
β what is type assertion?
β type assertion with as
β type assertion with <>
β Interview Questions
21 - dars | Generic Basics | YouTube Link
β What is generics?
β Function generics.
β Type constrain
β usage examples
β Interview Questions
22 - dars | Generic Intermediate | YouTube Link
β Passing multiple generic types.
β Type aliases with generics
β usage examples
β Interview Questions
23 - dars | Generics Advanced | YouTube Link
β Generics with extends keyword
β Keyof / typeof / typeof keyof
β call signature with generic function
β Interview Questions
24 - dars | Generics Exercise | YouTube Link
β Class with generics
β API generics
β Generics TS with Generic function
β example usage.
β Interview Questions
25 - dars | Mapped Types | Basics |YouTube Link
β What is mapped types?
β Union and index signature
β Property in Type.
β Property in typeof Type
β Β± readOnly modifier.
β Β±? optional modifier
β Three main features of Mapped Types
26 - dars | Mapped Types | Advanced | YouTube Link
β Generic mapped types
β Re-mapping
β Exclude as mapped type
β Pick as mapped type
β Record as mapped type
β Interview Questions
27 - dars | Indexed Type | Conditional Type | Literal Types | YouTube Link
β what is conditional type?
β conditional type with ternary operator.
β what is indexed type?
β indexed type with keyof
β what are literal templates
β Interview Questions
28 - dars | Utility Types - 1 | YouTube Link
β Promise
β Awaited
β Partial
β Optional
β Required
β ReadOnly
29 - dars | Utility Types - 2 | YouTube Link
β Pick
β Record
β Omit
β Extract
β Exlude
β NonNullable
30 - dars | Utility Type - 3 | YouTube Link
β Parameter
β ConstructorParameter
β ReturnType / async function
β InstanceType
β NoInfer type
31 - dars | | YouTube Link
β
β
β
β
β
β
β
β Interview Questions
UPDATING...
Agarda tushuntirlmasdan qolgan mavzular bo'lsa commentlarda izoh yozing yokida t.me/webbrain_admin ga murojat qiling, Alloh qodir qilganicha qolib ketgan mavzular bo'lsa video ko'rinishida darsliklar qatoriga qo'shib boramiz.
Videoni to'liq sotib olish uchun: https://teletype.in/@webbrain_ceo/video_darsliklar