JavaScript With Syntax For Types.

TypeScript · 语雀

Usecase · 语雀

TypeScript Usecase

References

Joshua 在使用 TypeScript 的过程中总结的一些经验。

TypeScript Cheatsheet, Common Errors, and More

Issues

Typescript can't import files without extension

import without extension · Issue #30927 · nodejs/node

-experimental-specifier-resolution

ts-node

ES Modules in NodeJS - Troubleshooting Resources

How to run .ts files directly?

optional vs. undefined

TSConfig Reference - Docs on every TSConfig option

Reverse required and optional properties

How to be a Type Wizard/Witch?

Compiler API

/**
 * Solution refer to {@link <https://catalins.tech/validate-environment-variables-with-zod/>}.
 */
declare global {
  // eslint-disable-next-line typescript/no-namespace -- intended
  namespace NodeJS {
    interface ProcessEnv extends Env {}
  }
}