Top "Tsc" questions

tsc is a compiler for converting TypeScript into plain JavaScript.

Run a npm script from gulp task

How to run a npm script command from inside a gulp task? package.json "scripts": { "tsc": "tsc -w" } gulpfile.js …

javascript node.js typescript gulp tsc
typescript compiler (tsc) command not working with tsconfig

I installed typescript globally ( npm install typescript -g ) Then created a folder, ran npm --init, then npm intall typescript --save-dev …

typescript tsc
Typescript primitive types: any difference between the types "number" and "Number" (is TSC case-insensitive)?

I meant to write a parameter of type number, but I misspelled the type, writing Number instead. On my IDE (…

typescript tsc
'Cannot redeclare block-scoped variable' in unrelated files

There is a simple TS package that is used as CommonJS modules and has no exports. TS files are compiled …

typescript tsc
Missing *.ts files (due to `npm link` ?)

I have this import statement in an Angular5 project: import {plugins, SCECodeGenType} from 'sce-plugins/code-generation'; this resolves to this path …

angular typescript angular-cli angular5 tsc
typescript outDir setting in tsconfig.json not working

I can't seem to get the outDir flag working when used in package.json. Directory structure is pretty simple: tsconfig.…

typescript build package.json tsc outdir
What are the proper typescript types for addEventListener mousemove and it's event argument?

Question: Without using any, What is the proper typing for my onMouseMove function? export class Main { private dTimer: number; constructor() { …

typescript mouseevent mousemove tsc static-typing
error TS6059: File is not under 'rootDir' .. 'rootDir' is expected to contain all source files

I am getting this fairly non-sensical tsc transpilation error: error TS6059: File '/Users/alex/codes/interos/teros-cli/src/logging.…

typescript tsc
Maintain src/ folder structure when building to dist/ folder with Typescript 3

I have a typescript nodejs server with this structure: tsconfig.json package.json src/ middleware/ utils/ index.ts dist/ middleware/ …

typescript build tsc transpiler
TypeScript via tsc command: Output to single file without concatenation

Is there a way of compiling single .ts file to different directory? The only way from the manual command of …

javascript typescript bundle tsc transpiler