mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-15 22:15:05 -05:00
Bump version to 5.1, fix 'ignoreDeprecations', and update baselines. (#52975)
This commit is contained in:
committed by
GitHub
parent
20d4479b24
commit
4374ffd628
@@ -4324,7 +4324,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
|
||||
const version = typeScriptVersion || versionMajorMinor;
|
||||
const ignoreDeprecations = options.ignoreDeprecations;
|
||||
if (ignoreDeprecations) {
|
||||
if (ignoreDeprecations === DeprecationVersion.v5_0 && (version === DeprecationVersion.v5_0 || version === DeprecationVersion.v5_5)) {
|
||||
if (ignoreDeprecations === DeprecationVersion.v5_0 && version.startsWith("5.")) {
|
||||
return;
|
||||
}
|
||||
else if (reportInvalidIgnoreDeprecations) {
|
||||
|
||||
Reference in New Issue
Block a user