TypeScript
www.oreilly.com Building Your TypeScript Project Project Layout Artifacts Dialing In Your Compile Target Enabling Source Maps Project References column: Using extends to Reduce tsconfig.json Boilerplate Error Monitoring Running Typescript …
www.oreilly.com Typesafe Multithreading In the Browser: With Web Workers - メインスレッドがブロックされるとUIの応答性を損なうので、Web Workerに逃がす 型付け Typesafe protocols In NodeJS: With Child Processes Exercises General-Purpose promi…
www.oreilly.com Type Declarations Ambient Variable Declarations Ambient Type Declarations Ambient Module Declarations Gradually Migrating from JavaScript to Typescript Step 1: Add TSC Step 2a: Enable Typechecking for JavaScript (Optional) …
www.oreilly.com A Brief History of JavaScript Modules import, export Dynamic Imports Using CommonJS and AMD Code Module Mode Versus Script Mode Namespaces Collisions Compiles Output Column: Prefer Modules over Namespaces When Possible Decl…
www.oreilly.com Asynchronous Programming, Concurrency, and Parallelism JavaScript's Event Loop Working with Callbacks Regaining Sanity with Promises async and await Async Streams Event Emitters Emitters in the Wild Asynchronous Programming…
www.oreilly.com Returning Null Throwing Exceptions Returning Exceptions The Option Type Returning Null Pros 最もlightweightな方法 Cons 「なぜ失敗したか」の情報を欠く 「日付のパースに失敗しました」よりは「Ymdで入力してください」の方が親切 T…
www.oreilly.com Advanced Function Types Improving Type Inference for Tuples User-Defined Type Guards Conditional Types Distributive Conditionals The infer Keyword Build-in Conditional Types Escape Hatches Type Assertions Nonnull Assertions…
www.oreilly.com Totality TSC Flag: noImplicitReturns Advanced Object Types Type Operators for Object Types The keyof operator TSC Flag: keyofStringsOnly The Record Type Mapped Types Built-in mapped types Companion Object Pattern Totality s…
www.oreilly.com Relationships Between Types Subtypes and Supertypes Variance TSC Flag: strictFunctionTypes Assignability Type Widening The const type Excess porperty checking Refinement Discriminated union types 英語 Relationships Between …
www.oreilly.com Classes Are Structurally Typed Classes Declare Both Values and Types Polymorphism Mixins Decorators class 【補】method 【補】method parameter Simulating final Classes Exercises constructorをprotectedにしたらどうなるの type …
www.oreilly.com Classes and Interfaces Classes and Inheritance super Using this as a Return Type Interfaces Declaration Merging implementations Implementing Interfaces Versus Extending Abstract Classes Classes and Interfaces TSはC#からいろ…
www.oreilly.com Polymorphism When Are Generics Bound? Where Can You Declare Generics? Column: filter and map in the Standard Library Generic Type Inference Generic Type Aliases Bounded Polymorphism Generic Type Defaults Type-Driven Develop…
www.oreilly.com Declaring And Invoking Functions Optional and Default Parameters Rest Parameters call, apply, and bind TSC Flag: strictBindCallApply Typing this TSC Flag: noImplicitThis Generator Functions Iterators TSC Flag: downlevelIter…
www.oreilly.com Intermission: Type Aliases, Unions, and Intersections Type aliases Union and Intersection Types Arrays Tuples Read-only arrays and tuples null, undefined, void, and never Column: strict null checking Enums Column: TCS Flag:…
www.oreilly.com All About Types Talking About Types The ABCs of Types any column: TSC Flag: noImplicitAny unknown boolean number bigint string symbol Objects Column: Type Inference When Declaring Objects with const Column: Definite Assignm…
www.oreilly.com Introduction TypeScript: A 10,000 Foot View The Compiler The Type System TypeScript Versus JavaScript How are types bound? Are types automatically converted? When are types checked? when are errors surfaced? Code Editor Set…