
See how TypeScript catches errors before production, reducing crashes and unhappy users. Experience a configurable, statically typed environment that helps manage edge cases and null checks in growing codebases.
Collect all code snippets into one local folder to build a library. Store each video’s TypeScript snippet in a separate project, not the bootstrap project.
Explore programming fundamentals in TypeScript through three vehicle examples: car, bike, and plane, by creating objects, attaching fuel functions, and printing details, building a mind map for later reference.
Join the web development Telegram channel, MSJ web development, to connect with like-minded learners, ask questions, and know that I am active in the group; joining is optional.
Begin your TypeScript journey with hands-on lab experiments crafted from the instructor's experience and designed to be simple and accessible for everyone.
Explore why JavaScript's limitations prompt TypeScript, examining a fundamental problem with JavaScript through a concrete example and outlining how TypeScript solves it.
In this lecture, we will analyse a practical example of a simple adder function where javascript fails to intimate the developer about a potential error / bug introduced to the system that causes unintended behaviour at runtime causing corrupted production code.
In this lab experiment, you will try to play with a sample javascript code in order to understand the fundamental problem with JavaScript during runtime.
Set up your local machine to mirror the instructor's environment, install packages, and configure settings, then begin the bootstrap project from scratch.
Let's set up a bootstrap playground project from scratch which will help you understand each topic / concept we discuss throughout this Bootcamp. You will also have the ability to change code and observe the behaviour.
You can also see the errors via either VS Code intellisense or during compilation.
VS Code extensions are really handy. So install these in your local machine so that it matches my setup. This will make it easy for you to annotate and color code as we try to understand various TS concepts.
Explore the TypeScript online playground to paste code, compile to JavaScript, and view errors with options like target and tsconfig, then apply these concepts on your local machine.
Explore TypeScript compiler options and flags using the official TypeScript documentation, learn how each option affects project configuration, and apply the suggested settings to your boot camp project.
Explore the basics of TypeScript, distinguishing its primitive types from JavaScript, learn how TypeScript adds custom types, object types, and interfaces, and practice annotating types in hands-on labs.
Learn how TypeScript maps JavaScript primitive types, and declare explicit types for string, number, boolean, null, undefined, big int, and symbol. Observe how the TypeScript compiler outputs plain JavaScript.
Learn how TypeScript enforces array types with strings, numbers, and booleans through examples like car models and lucky numbers, and annotate functions and return types to avoid errors.
Explore union types in TypeScript by using the pipe operator to accept numbers or strings and narrow with typeof, with practical examples like printing a car model.
Understand primitive type aliases, union type aliases, and object type aliases, and see how to apply them to a car model, make, and sedan boolean in TypeScript.
Declare a function type in TypeScript by annotating a callback, then print car model and make with explicit number and string types to avoid implicit any.
Explore interfaces in TypeScript, a scalable alternative to type aliases, learn how to declare an interface, include methods, and enforce objects adhere to the interface in large projects.
Use object types in TypeScript to annotate a car object with an interface or type alias and pass it to a function. Handle optional properties and dot notation for access.
Explore the difference between interfaces and types in TypeScript, learn why interfaces offer extensibility for large projects, and discover how types handle unions.
Discover how type aliases can rename primitives like string, but interfaces cannot, causing a TypeScript error when a primitive is renamed with an interface.
Learn how field addition differs between interfaces and types in TypeScript. Interfaces support extensibility by adding fields like model and year, while types cannot be changed after creation.
Learn how to achieve extensibility in TypeScript by extending interfaces and type aliases, using extends for interfaces and intersections with the ampersand for types.
Explore TypeScript's special types beyond primitives and how they extend the JavaScript type system. See how these types, not present in JavaScript, improve safety in practical code via lab examples.
Explore how the any type in TypeScript lets variables accept any value, from strings and numbers to objects, while highlighting risks of bypassing type checking and common pitfalls.
Learn how TypeScript's unknown type differs from any, offering safer handling of dynamic values like DOM elements and model data, and when to prefer unknown over any.
Discover how TypeScript's special void type represents no return value, distinguishing it from undefined, and how to annotate a function with void for clearer typing.
Explore the never type in TypeScript, learn how functions throw errors and crash programs, why never signals a non-returning value, and how unions can yield never when exhausted.
Explore how TypeScript extends literal concepts from JavaScript by defining literal strings and numbers as little types that constrain variables to specific values.
TypeScript lets you create literal types that contain exact values, like Honda or 2021, using const, type keywords, and unions to enforce strict, specific values.
Explore how TypeScript infers generic versus literal types for objects and learn to use the as keyword to force literal values for properties.
Demonstrates how unions create custom types by combining literals, using a car example with Lamborghini, Honda, and Ford, and shows that BMW is not assignable to the union.
Explore declaring custom types by combining non-lethal types using unions, interfaces, and literals in TypeScript, then apply to a car example with make as a string.
Explore how TypeScript declares and enforces exact array shapes by specifying each element's type, such as a string followed by a number, with hands-on examples and a lab.
TypeScript's table (tuple) types fix the number and order of elements, e.g., a three-item value [number, string, boolean], enabling compile-time errors for mismatched or out-of-range access.
Declare the API response as a tuple to manipulate an array with a known order, ensuring nomenclature (model, make) and avoiding runtime errors when item meanings or counts are unknown.
Explore declaring a tuple with an interface in TypeScript, enforcing a fixed length and item types (number, string, boolean) using numeric keys and unions like India or US.
Learn how to define optional properties in TypeScript, using a trailing question mark for the last parameter in a table, and why only the end can be optional.
Learn how to mark a double as read-only in TypeScript, preventing any item from being reassigned and surfacing errors with read-only properties.
Learn to convert a union string or number array into a read-only table by using the as keyword and const assertions in TypeScript.
Learn to use rest parameters in TypeScript with the spread syntax, defining a tuple: first a number, second a string, and the rest as numbers, illustrated with a card table.
Explore essential TypeScript concepts to ensure variables are never null, learn how to assert non-nullability, handle edge cases, and leverage type boundary ideas for safer, long-term projects.
Learn how to use type assertions in TypeScript to tell the compiler a DOM query returns a specific element, such as a canvas element, using the as keyword.
Demonstrates how TypeScript strict mode flags nullability and uses the non-null assertion operator with an exclamation mark to treat a possibly null value as non-null, with caveats.
In the MSK TypeScript Bootcamp, learn how type assertions map to more or less specific types. Avoid impossible coercions between string and number and use constraints like any.
Conclude the MSK TypeScript Bootcamp and begin applying TypeScript in projects, moving from JavaScript to TypeScript with notes and lab experiments; anticipate level two with topics like classes and interfaces.
TypeScript is a superset of JavaScript developed at Microsoft by Anders Hejlsberg ( designer of C# ) in the year 2010 and open-sourced in 2012. TypeScript adds a handful of new features to JavaScript and takes it to the next level in modern web development.
There are a lot of advantages if you add TypeScript to your JavaScript-based projects like:
You can catch bugs errors during the development phase itself rather than runtime.
Debugging is much easier & you will have bug-free production code and feel safe.
With static type-checking, it becomes easier for you to spot errors and edge cases.
Saves a lot of developer's time in fixing unidentifiable runtime bugs.
TypeScript adds advanced features like generics, modules & namespaces.
Your projects will be easily understandable by other developers.
Your project will have excellent developer experience ( DX ) and team velocity.
Helps you write less code than JavaScript & improves readability.
Source code documentation will be much better.
TypeScript code is easier to refactor and reliable. Hence easier to maintain.
Since JavaScript is a subset of TypeScript, you can use all JavaScript libraries.
You can incrementally upgrade your JavaScript files on the go.
TypeScript is a powerful tool for large applications
After completing MSK TypeScript Bootcamp, you will be able to:
Understand the problem with JavaScript for large scale applications.
Add TypeScript to your JavaScript projects with the compiler configuration.
Include TypeScript and start adding type annotations in your JavaScript projects.
Fully understand all the types supported by TypeScript in depth.
Feel confident in your front-end interview and talk about TypeScript.
Download all the code snippets and create your personal reference notes.
This Bootcamp features hands-on coding lab experiments which are both fun and useful. They will help you understand concepts and play around with TypeScript features. You will have the opportunity to keep those examples for your reference as we advance ourselves to learn more TypeScript features in this series of upcoming Bootcamps.
Your journey to become a master of TypeScript begins here.
Let's get started...