Subscribe to TypeScript
Get notified when new articles on TypeScript are published.
  • 20 Results
    • Tutorial

      How To Set Up a New TypeScript Project

      In this tutorial, you will learn how to set up a TypeScript project without a starter’s help. You will also learn how compiling works in TypeScript and how to use a linter with your TypeScript project.
      8 days agoBy Alligator.ioTypeScript
    • Tutorial

      Getting Started With Angular Using the Angular CLI

      Angular is a popular JavaScript framework that creates interactive web, mobile, and desktop applications. The Angular CLI simplifies the process of getting started with Angular. This tutorial covers building an Angula...
      11 days agoBy PaulHallidayAngularHTMLCSSTypeScriptDevelopmentJavaScript
    • Question

      NestJs Deployement to DigitalOcean

      I am deploying nestjs application to digitalocean but i kept on getting this error message “Deploy Error: Non-Zero Exit Code”, and it build successful but refused to deploy.
      1 answer14 days agoBy josephdilasApplicationsNode.jsTypeScript
    • Tutorial

      How To Run TypeScript Scripts with ts-node

      In this article you will learn how to run TypeScript scripts without the hassle of manually transpiling.
      2 months agoBy joshtronicTypeScript
    • Tutorial

      How To Use Modules in TypeScript

      Modules are a way to organize your code into smaller, more manageable pieces. TypeScript evolved along with ECMAScript specifications to provide a standard module system for JavaScript programs that has the flexibilit...
      3 months agoBy Jonathan CardosoDevelopmentJavaScriptTypeScript
    • Tutorial

      How To Use Namespaces in TypeScript

      In TypeScript, you can use namespaces to organize your code. Previously known as internal modules, namespaces in TypeScript are based on an early draft of ECMAScript modules. In this tutorial, you will create and use ...
      4 months agoBy Jonathan CardosoDevelopmentJavaScriptTypeScript
    • Tutorial

      How To Use Generics in TypeScript

      Generics are a fundamental feature of statically-typed languages, allowing developers to pass types as parameters to a type, function, or other structure. TypeScript fully supports generics as a way to introduce type-...
      6 months agoBy Jonathan CardosoDevelopmentJavaScriptTypeScript
    • Tutorial

      How To Use Interfaces in TypeScript

      Interfaces in TypeScript enable you to represent and document various data structures. In this tutorial, you’ll create interfaces, learn how to use them, explore the differences between normal types and interfaces, an...
      8 months agoBy Jonathan CardosoDevelopmentJavaScriptTypeScript
    • Tutorial

      How To Use Decorators in TypeScript

      Decorators are a way to decorate members of a class, or a class itself, with extra functionality. This tutorial covers creating decorators in TypeScript for classes and class members, and also how to use them.
      8 months agoBy Jonathan CardosoTypeScriptJavaScriptDevelopment
    • Tutorial

      TypeScript Mixins

      Here’s a short primer on creating and using Mixins in TypeScript.
      9 months agoBy Alfred M. AdjeiTypeScript
    • Tutorial

      How To Build a Bookstore Landing Page with Gatsby and TypeScript

      Landing pages are web pages that promote a product or service, providing a place for customers to land when arriving at a site. In this tutorial, you will build a landing page with TypeScript and the Gatsby static sit...
      10 months agoBy Brandon DuschDevelopmentJavaScriptTypeScriptGatsbyJS
    • Tutorial

      How To Set Up a Gatsby Project with TypeScript

      TypeScript is a superset of JavaScript that adds optional static typing at build time, which cuts down on debugging runtime errors. It’s static-typing abilities go well with a static-site generator like Gatsby, and Ga...
      10 months agoBy Brandon DuschGatsbyJSTypeScriptDevelopmentJavaScript
    • Tutorial

      How To Use Classes in TypeScript

      Classes are a common abstraction used in object-oriented programming (OOP) languages to describe data structures known as objects. TypeScript has full support for class syntax and also adds features on top of it, like...
      10 months agoBy Jonathan CardosoDevelopmentJavaScriptTypeScript
    • Question

      How to add my .env variables on Droplet

      I created my droplet, installed node and deployed my app from GitHub. I have some variables in .env file. How can I add those variables in DO Droplet. Without them, my app won’t run. Thank you
      1 answer11 months agoBy EmmaueljbabatundeNode.jsGitHub ActionsTypeScript
    • Tutorial

      How To Use Enums in TypeScript

      In TypeScript, enums, or enumerated types, are data structures of constant length that hold a set of constant values. Each of these constant values is known as a member of the enum. Enums are useful when setting prope...
      11 months agoBy Jonathan CardosoTypeScriptJavaScriptDevelopment
    • Tutorial

      How To Use Functions in TypeScript

      TypeScript fully supports the existing JavaScript syntax for functions, while also adding type information and function overloading as new features. Besides providing extra documentation to the function, type informat...
      1 year agoBy Jonathan CardosoTypeScriptJavaScriptDevelopment
    • Tutorial

      How To Use Typescript with Create React App

      Learn how to use Create React App to build a React application with Typescript support.
      1 year agoBy Chris SevReactDevelopmentJavaScriptTypeScript
    • Tutorial

      How To Create Custom Types in TypeScript

      Though the basic types in TypeScript will cover many use cases, creating your own custom types based on these basic types will allow you to ensure the type checker validates the data structures specific to your projec...
      1 year agoBy Jonathan CardosoTypeScriptDevelopmentJavaScript
    • Tutorial

      How To Use Basic Types in TypeScript

      TypeScript is an extension of the JavaScript language that uses JavaScript’s runtime with a compile-time type checker. This combination allows developers to use the full JavaScript ecosystem and language features, whi...
      1 year agoBy Jonathan CardosoTypeScriptDevelopmentJavaScript
    • Question

      tsc: command not found / App Platform

      Trying to deploy Node.js app (with TypeScript) with App Platform I am getting tsc: command not found when trying to run build. This is part of my package.json "scripts": { "build": "tsc", "start": "node dist/index.js"...
      Accepted Answer: Did "build": "npm install --only=dev && tsc" and it looks like its working.
      6 answers1 year agoBy madrianhorningDigitalOcean App PlatformTypeScriptNode.js