TypeScript

TypeScript subscription active
You will receive email notifications for new publications on TypeScript.
22 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.
    By Alligator.io TypeScript
  • 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.
    By joshtronic TypeScript
  • Tutorial

    How To Use Generics in TypeScript

    With generics, you can write dynamic and reusable generic blocks of code. In this article, you will integrate generics into your TypeScript code and apply them to functions and classes.
    By Adesh Kumar TypeScript
  • Tutorial

    How To Build a REST API with Prisma and PostgreSQL

    Prisma is an open source database toolkit. In this tutorial, you will build a REST API for a small blogging application in TypeScript using Prisma and a PostgreSQL database. At the end of the tutorial, you will have a...
    By nikolasburk Databases PostgreSQL API TypeScript Docker Node.js
  • Tutorial

    TypeScript Mixins

    Here's a short primer on creating and using Mixins in TypeScript.
    By Alfred M. Adjei TypeScript
  • Tutorial

    How To Use Type Aliases in TypeScript

    Learn how to create dynamic and reusable code with TypeScript type aliases.
    By Alfred M. Adjei TypeScript
  • Tutorial

    Module Augmentation in TypeScript

    A demonstration of the creation and usage of TypeScript module augmentation, which allows us to extend the functionality of other modules.
    By Alfred M. Adjei TypeScript
  • Tutorial

    TypeScript Enum Declaration and Merging

    Here's a short post explaining how to create and merge Enums in TypeScript.
    By Alfred M. Adjei TypeScript
  • Tutorial

    Interface Declaration Merging in TypeScript

    A post that shows how to go about creating and using TypeScript declaration merging for interfaces, and why it's useful.
    By Alfred M. Adjei TypeScript
  • Tutorial

    Polymorphic this Type in TypeScript

    A short post on how to create and use the polymorphic this type in TypeScript.
    By Alfred M. Adjei TypeScript
  • Tutorial

    TypeScript Tuples

    Here's a short post where you'll learn about creating and using tuples in TypeScript and understand their benefit.
    By Alfred M. Adjei TypeScript
  • Tutorial

    Benefits of Using TypeScript

    Let's go over some of the benefits of using TypeScript instead of vanilla JavaScript for your next project.
    By Miquel Arranz TypeScript
  • Tutorial

    Object Rest and Spread in TypeScript

    A new feature since TypeScript 2.1, object rest and spread allows you to make copies, merge and destructure objects.
    By Alligator.io TypeScript
  • Tutorial

    Introduction to Enums in TypeScript

    See how to use enums to define collections with a numeric base in TypeScript.
    By Alligator.io TypeScript
  • Tutorial

    Union Types in TypeScript

    Union types in TypeScript allow you to describe values that can be of more than one type.
    By Alligator.io TypeScript
  • Tutorial

    Introduction to Interfaces in TypeScript

    Learn how to declare interfaces in TypeScript and create customized type checking.
    By Alligator.io TypeScript
  • Tutorial

    String Literal Types in TypeScript

    String literal types allow you to define types that accept only specific strings. This way, you can limit the correct value of variable to precise strings.
    By Alligator.io TypeScript
  • 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/...
    Accepted Answer: Did "build": "npm install --only=dev && tsc" and it looks like its working.
    1 By madrianhorning DigitalOcean App Platform TypeScript Node.js
  • Question

    App Platform keeps using cached node_modules despite changes

    I have been deploying a node.js server application via app platform without issue. In the last push to github, I have introduced typescript which has made significant changes to my package.json and package-lock.json ...
    Accepted Answer: This is a known issue with App Platform node builds NOT installing dev dependencies (which is really stoopid). to fix, alter your build command to this. npm install --only=dev && npm run build && npm prune --producti...
    3 By mdausmann Node.js TypeScript DigitalOcean App Platform
  • Question

    No buildpack groups passed detection

    Deploying node app to App Platform. Running tsc in the build command, which isn't working, but after trying a couple different commands in the build, I'm getting No buildpack groups passed detection I tried to clear t...
    1 By madrianhorning Node.js DigitalOcean App Platform TypeScript