
Discover what TypeScript is and why to learn it, covering variable declarations, functions, interface, class, and access modifiers through hands-on coding with Angular, React, or View.
TypeScript is an open source, free programming language by Microsoft that adds types to JavaScript, and compiles to plain JavaScript as a typed superset.
Learn how to start using TypeScript by installing Node.js, choosing Visual Studio Code, installing TypeScript globally via npm install -g typescript, verifying the version, and practicing hands-on in VS Code.
Install TypeScript globally via npm using the global flag, then verify installation in the Visual Studio Editor's integrated terminal by running tsc and checking the version, ensuring access from anywhere.
Learn practical troubleshooting for the tsc -v issue in Visual Studio Code by following step-by-step fixes, including checking TypeScript version in the terminal and adjusting PowerShell execution policy.
Write and compile your first TypeScript program, seeing tsc generate a JavaScript file, catch block-scope let errors at compile time, then run with Node to print Hello TypeScript.
Learn to resolve TypeScript script versus module errors by adding export and import, enable watch mode with tsc, and understand the transpile workflow to JavaScript.
Learn how let and const provide block scope to prevent redeclaration in the same scope, decide when to use each, and understand initialization rules for constants and mutable variables.
Declare variables with explicit data types in TypeScript, using boolean, number, and string, and learn how type annotations enable compile-time checks and resolve block scope errors through export.
Explore subtypes in TypeScript that represent values that may be undefined or not available. See examples with address, middle name, and citizenship to illustrate missing information.
Learn enum in TypeScript using the enum keyword to assign friendly names to values like months. Start enums at zero by default and begin from a custom value for readability.
Explore the unknown type in TypeScript, apply type casting to string to avoid errors, and implement a runtime has-property check to confirm the id field on an any object.
TypeScript infers a variable's type from its initial value, preventing incompatible later assignments. Without initialization, it can't infer and behaves like JavaScript, allowing any.
Discover union types in TypeScript, letting a variable hold number or string with the pipe operator, and compare with any type for safer API data handling.
Master optional parameters in TypeScript by marking them with a question mark and placing them after required parameters, handling undefined values to avoid compilation errors.
Learn how to define default function parameters in Typescript, pass arguments with and without values, and distinguish between default and optional parameters for clearer function signatures.
Discover why interfaces matter in TypeScript by defining a single employee data structure, avoiding updates across hundreds of functions, and using one declaration to reflect changes everywhere.
Master interfaces in TypeScript by defining an employee object, using optional fields with a question mark, and applying interfaces to manage form-like data across functions.
Explore how TypeScript adds classes and objects, with constructors and fields. Create instances with new and display their details.
Learn how inheritance in TypeScript lets a head student extend the student class, reusing the name field, initializing via super in the constructor, and accessing parent methods like details.
Explore TypeScript access modifiers—public, private, and protected—with default public access; see how private restricts outside access while protected enables use in child classes.
Discover why combining React with TypeScript enhances static type checking, enabling early bug detection, descriptive data types, robust auto completion, and easier refactoring for scalable enterprise apps.
Create a new React with TypeScript app using npx create-react-app <name> --template TypeScript, set up your code folder, and let the automatic TypeScript scaffold initialize.
Explore the React TypeScript workflow by opening the ACT app in Visual Studio Code, examining the folder structure, and running npm start to view TypeScript in the browser.
Create a first TypeScript React component using an es5 style function named with a capitalized name. Export it, import into app, and render at root to see Hello TypeScript.
Create a new React component using ES6 syntax in a tsx file, define a welcome component as an arrow function, export it, and import it into the app to render.
Learn how to use props to make React components dynamic with TypeScript by defining a props type or interface, enabling reusable UI through dynamic data.
Learn to enforce prop types in React with TypeScript, using string for first name and last name, a number for age, and a boolean for driving permission.
Create a React TypeScript component with props defined as an object, modeling an Employee and its Address, then pass typed data via props and enforce Address and Employee types.
Learn to pass an employee object as props, access its name and address, and define the object structure to ensure correct usage.
Learn how to type React component children in TypeScript by declaring a props type with children as string, resolving type errors, and handling complex child components.
Learn to pass one component as a child to another in React with TypeScript, and declare parent two props with children typed using React types to render hello, world.
Explore optional props in TypeScript and React, using question marks to mark optional fields and default values to supply fallbacks when props are omitted, with examples.
Explore how the useState hook infers a boolean type from a default value, demonstrate dynamic login/logout behavior, and show what happens when no default value is provided.
Explore using the useState hook with a null default, define a user type for login state, and enforce null-safe access with a union type and optional chaining in React TypeScript.
Learn how to use type assertion in TypeScript to never treat the user as null, by using an empty object with name fields and asserting the type in a component.
Learn to implement the useReducer hook with TypeScript for complex state management in React. Define a typed counter state and actions, and dispatch increment and decrement with numeric payloads.
Welcome to this Typescript and React Typescript Masterclass course.
In this course you will the following:
What is Typescript
Difference between JavaScript and Typescript
Features of Typescript with Real Practical Handson Examples for each concept
Learn to install and use required software
What is Transpiler
What is the difference between Transpiling and Compiling
Writing Compiling and Running our first Typescript program
Transpiling in watch mode for any new changes
Variable declaration and scopes - let const var
Data Types explanation
Declaring variables with Data Types
Template String in Typescript
Sub types in Typescript
Arrays and Tuple in Typescript
Enum in Typescript
Any type in Typecsript
Unknown type in Typescript and Type casting
Type inference in Typescript
Multi type or Union type in Typescript
Functions and Typescript
Optional function parameters in Typescript
Default function parameters in Typescript
Why we need Interface in Typescript
Interface Example
Class and Object in Typescript
Inheritance in Typescript
Access modifiers in Typescript
You will learn to create React Application with Typescript support and then start applying Typescript concept to all React JS concepts one by one as mentioned below:
Why Should we Combine React with Typescript
Creating new React Typescript application
React Workflow and React Typescript Project Overview
Create First React Component with ES5 syntax
Create First React Component with ES6 syntax
Using Props with Typescript in React Component
Using string number and boolean type with props and component attributes
Props with Custom Object Type
Props with Array of Custom Object