Checks if a given compiler option is enabled, accounting for whether all flags (except strictPropertyInitialization) have been enabled by strict: true.
strictPropertyInitialization
strict: true
const optionsLenient = { noImplicitAny: true,};isStrictCompilerOptionEnabled(optionsLenient, "noImplicitAny"); // trueisStrictCompilerOptionEnabled(optionsLenient, "noImplicitThis"); // false Copy
const optionsLenient = { noImplicitAny: true,};isStrictCompilerOptionEnabled(optionsLenient, "noImplicitAny"); // trueisStrictCompilerOptionEnabled(optionsLenient, "noImplicitThis"); // false
const optionsStrict = { noImplicitThis: false, strict: true,};isStrictCompilerOptionEnabled(optionsStrict, "noImplicitAny"); // trueisStrictCompilerOptionEnabled(optionsStrict, "noImplicitThis"); // false Copy
const optionsStrict = { noImplicitThis: false, strict: true,};isStrictCompilerOptionEnabled(optionsStrict, "noImplicitAny"); // trueisStrictCompilerOptionEnabled(optionsStrict, "noImplicitThis"); // false
Checks if a given compiler option is enabled, accounting for whether all flags (except
strictPropertyInitialization) have been enabled bystrict: true.