TS: disable type expansion by default

This commit is contained in:
Asger F
2019-01-31 14:23:42 +00:00
parent be3191aa6b
commit 7a813cfb84

View File

@@ -409,7 +409,7 @@ function handlePrepareFilesCommand(command: PrepareFilesCommand) {
function reset() {
state = new State();
state.typeTable.restrictedExpansion = getEnvironmentVariable("SEMMLE_TYPESCRIPT_NO_EXPANSION", Boolean, false);
state.typeTable.restrictedExpansion = getEnvironmentVariable("SEMMLE_TYPESCRIPT_NO_EXPANSION", Boolean, true);
}
function getEnvironmentVariable<T>(name: string, parse: (x: string) => T, defaultValue: T) {