Tim Mouskhelichvili • July 4, 2022 • 2 minutes to read
When coding with TypeScript, developers sometimes need to convert a string to a number. Luckily, JavaScript provides many different ways to do it that you can also use in TypeScript. The easiest way to cast a string to a [...]
Tim Mouskhelichvili • July 2, 2022 • 3 minutes to read
TypeScript offers multiple types to compose existing types into new ones, such as the intersection type or the union type. The union type allows a developer to use more than one data type as a parameter or a variable [...]
Tim Mouskhelichvili • June 30, 2022 • 2 minutes to read
TypeScript provides developers with different ways to combine and compose existing types to create new ones. One such TypeScript feature is the intersection type. The intersection type allows a developer to combine multiple types into one. This article will [...]
Tim Mouskhelichvili • June 28, 2022 • 3 minutes to read
TypeScript is a superset of JavaScript, and just like its counterpart, it supports object-oriented principles such as class inheritance. When a class inherits another class, a developer may want to override a parent class method. Luckily, this is easy [...]
Tim Mouskhelichvili • June 27, 2022 • 2 minutes to read
In TypeScript, developers often need to combine or extend a type to create a new one. Luckily, this is simple to do and is very easy to accomplish. This article will explore different ways of extending a type or [...]
Tim Mouskhelichvili • June 24, 2022 • 2 minutes to read
Sometimes after deleting a file, a developer may want to restore it. This task is simple and easy to accomplish if you have already committed the file to the Git repository. This article will go through different scenarios for [...]
Tim Mouskhelichvili • June 22, 2022 • 2 minutes to read
Git is the most popular version control software because it offers a simple process for tracking code changes. To push some code changes, you first need to stage them using the git add command. This brings the question of [...]
Tim Mouskhelichvili • June 20, 2022 • 2 minutes to read
Most developers love Git because it provides easy commands to version control the source code of a project. One of the commands offered by Git is the git rm command used to remove files. Although this command is simple [...]
Tim Mouskhelichvili • June 17, 2022 • 2 minutes to read
When working on a Git repository, a developer sometimes needs to overwrite local changes with remote changes. However, when using the git pull command, the developer can stumble on a similar error message to this: error: Untracked working tree [...]
Tim Mouskhelichvili • June 17, 2022 • 2 minutes to read
Sometimes when working on a Git repository, a developer may want to stash single files instead of all the changes. Luckily, Git offers simple commands to manage the stash and to add a single file to the stash quickly [...]