Skip to content

Typescript

This content is not available in your language yet.

TypeScript is a superset of JavaScript that adds optional static typing to the language. This means that you can add type annotations to your JavaScript code, which can help to catch errors early in the development process and make your code more maintainable. TypeScript is a popular choice for large JavaScript projects, as it can help to improve the quality and reliability of the code.

Command

start your typescript file

Terminal window
npm start

build your code Typescript —> Javascript to commonJS and ESmodule with esbuild and you can set config in esbuild.ts file

Terminal window
npm run build

test your code with vitest start with

Terminal window
npm run test

LICENCE BY DOSE FROM ANOTHER PLANET