TypeScript

tsc (TypeScript compiler)

Në shqip: Kompajleri i TypeScript-it

ShpjegimiSQ

tsc është kompajleri i TypeScript-it: i kontrollon tipet dhe e kthen kodin në JavaScript. Me tsc --noEmit vetëm i kontrollon tipet pa krijuar skedarë — shpesh përdoret në CI, ndërsa Vite ose esbuild bëjnë përkthimin.

EnglishEN

tsc is the TypeScript compiler: it checks the types and turns the code into JavaScript. With tsc --noEmit it only checks types without writing files — often used in CI while Vite or esbuild do the translating.

Si ta mendosh

Si mësuesi që ta kontrollon hartimin për gabime, dhe pastaj ta rishkruan me shkrim të pastër.

Lexoje në anglisht

Like a teacher who checks your essay for mistakes, then copies it out neatly.

Shembull kodibash

npx tsc --init      # krijon tsconfig.json
npx tsc --noEmit    # vetëm kontrollo tipet

Terma të lidhur