Typescript Pt. 7 - Modules with TypeScript
Modules in TypeScript Modules are a way to organize code in a file. It helps to keep the code clean, organized, and easy to maintain. The general idea is to split the code into multiple fil...
Modules in TypeScript Modules are a way to organize code in a file. It helps to keep the code clean, organized, and easy to maintain. The general idea is to split the code into multiple fil...
What are Generics? Generics are a way to make components work with any data type and not restrict to one data type. For example, a function that returns the first element of an array: const cars ...
Classes in TypeScript are a way to create objects with properties and methods. They are similar to classes in other object-oriented programming languages like Java and C#. Modifiers Modifiers are...
Interfaces in TypeScript are a way to define the shape of an object. They are similar to type aliases, but with some differences. Creating an interface interface Person { name: string; age: n...
Creating arrays We can create arrays in two ways: let list: number[] = [1, 2, 3]; let list: Array<number> = [1, 2, 3]; Creating 2D arrays let matrix: number[][] = [ [1, 2, 3], [4, 5,...
Some of the JavaScript issues that Typscript solves 1. Type checking JavaScript is a dynamically typed language, which means that you donβt have to specify the type of variables when you decla...
What is TypeScript? TypeScript is a superset of JavaScript. All JavaScript code is valid TypeScript code. It adds types to JavaScript. It is a strongly typed language. It is compiled to Ja...
Configuring Global Main Branch locally I faced an issue whenever I initialized Git on my local machine and tried to push the files to a remote repository on GitHub. The issue was that ...
What is an SSH key? An SSH key is an access credential in the SSH protocol. Its function is similar to that of user names and passwords, but the keys are primarily used for automated pr...