TypeScript · Junior · Question 27 of 75

What does the strict flag in tsconfig.json enable?

Explanation

strict: true enables a family of flags: strictNullChecks, noImplicitAny, strictFunctionTypes, strictBindCallApply, useUnknownInCatchVariables and others. New projects should start with strict. It doesn't forbid explicit any - there are linter rules for that.

Further reading

Problem with a question

TypeScript · Junior · question 27

Test yourself

Take the TypeScript · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz