Home > Software design >  How is TypeScript giving me feedback without running tsc?
How is TypeScript giving me feedback without running tsc?

Time:10-18

I am following the steps to add typescript to an existing react native project here. The last step says:

Run yarn tsc to type-check your new TypeScript files.

But when I look at VSCode, I already see feedback from typescript. Is it really necessary to use tsc with react native? This post says you don't even need an outDir and the RN documentation indeed says to set noEmit to true. Thank you!

CodePudding user response:

VS Code includes the TS language server out of the box which is why you were getting first-class TS support without manually configuring anything. However, in order to build/run your application, you will have to set up some sort of build tool that will call tsc under the hood.

  • Related