Tag

typescript

  1. Why TSConfig exclude files still show type errors in VSCode

    Even when a file is excluded from compilation in TSConfig, VSCode may still show type errors when you open that file.

    • TypeScript
  2. TSConfig options added in TypeScript 4.5 and later

    I got curious about how many new TSConfig options were added in the past two years. TypeScript 4.5 was released around November 2021, so I looked at all options added since then.

    • TypeScript
  3. TypeScript type parameter variance and variance annotations

    An overview of the default behavior of type parameter variance in TypeScript and the variance annotations available.

    • TypeScript
  4. Using TypeScript generics with arrays to restrict return value keys

    How to make a function that returns an object with array element values as keys type-safe. Also covers how to make it even safer using const-type-parameters.

    • TypeScript
  5. I wish someone had taught me how to type-safe mock in TypeScript + Jest

    This article is for Day 5 of "Time Leap TypeScript — Things I Wish I Knew When I Started TypeScript." When I first started writing TypeScript, one thing I struggled with was how to write types for mocks when writing tests with Jest.

    • Jest
    • TypeScript
    • Testing
  6. How TypeScript Playground shares code via URL

    TypeScript Playground lets you share code just by sharing a URL. I looked into how this works.

    • TypeScript
  7. A use case for TypeScript template literal types

    An example of using TypeScript template literal types.

    • TypeScript
  8. Understanding TypeScript's skipLibCheck

    An explanation of the skipLibCheck option in tsconfig.json — what it does and when to use it.

    • TypeScript
  9. tsc and Babel

    A summary of the roles of tsc and Babel when transpiling TypeScript.

    • TypeScript
  10. Notes on converting a TypeScript project to a monorepo

    Notes on refactoring a repository that managed frontend and server code in separate directories into a monorepo structure.

    • TypeScript
  11. Tutorial - build a VPC with CDK for Terraform

    A tutorial for building a VPC using CDK for Terraform

    • Terraform
    • TypeScript
  12. Let's try Deno

    Getting started with Deno

    • Deno
    • TypeScript