Tag
typescript
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
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
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
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
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
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
A use case for TypeScript template literal types
An example of using TypeScript template literal types.
- TypeScript
Understanding TypeScript's skipLibCheck
An explanation of the skipLibCheck option in tsconfig.json — what it does and when to use it.
- TypeScript
tsc and Babel
A summary of the roles of tsc and Babel when transpiling TypeScript.
- TypeScript
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
Tutorial - build a VPC with CDK for Terraform
A tutorial for building a VPC using CDK for Terraform
- Terraform
- TypeScript
Let's try Deno
Getting started with Deno
- Deno
- TypeScript