diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index f47bbe90004c0..1e6935ca223fb 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -1510,7 +1510,12 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [ description: Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files, category: Diagnostics.Language_and_Environment, defaultValueDescription: Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules, - } + }, + { + name: "ignoreDeprecations", + type: "string", + defaultValueDescription: undefined, + }, ]; /** @internal */ diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index d0199e5c1195f..52e03b8dc15d6 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -4245,6 +4245,18 @@ "category": "Error", "code": 5100 }, + "Flag '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify 'ignoreDeprecations: \"{2}\"' to silence this error.": { + "category": "Error", + "code": 5101 + }, + "Flag '{0}' is deprecated. Please remove it from your configuration.": { + "category": "Error", + "code": 5102 + }, + "Invalid value for '--ignoreDeprecations'.": { + "category": "Error", + "code": 5103 + }, "Generates a sourcemap for each corresponding '.d.ts' file.": { "category": "Message", diff --git a/src/compiler/program.ts b/src/compiler/program.ts index dcf36c5e310c0..a9ac7f940e220 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -53,6 +53,7 @@ import { CustomTransformers, Debug, DeclarationWithTypeParameterChildren, + DeprecationVersion, Diagnostic, DiagnosticCategory, diagnosticCategoryName, @@ -308,6 +309,7 @@ import { UnparsedSource, VariableDeclaration, VariableStatement, + versionMajorMinor, walkUpParenthesizedExpressions, WriteFileCallback, WriteFileCallbackData, @@ -1392,13 +1394,14 @@ function shouldProgramCreateNewSourceFiles(program: Program | undefined, newOpti return optionsHaveChanges(program.getCompilerOptions(), newOptions, sourceFileAffectingCompilerOptions); } -function createCreateProgramOptions(rootNames: readonly string[], options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: readonly Diagnostic[]): CreateProgramOptions { +function createCreateProgramOptions(rootNames: readonly string[], options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: readonly Diagnostic[], typeScriptVersion?: string): CreateProgramOptions { return { rootNames, options, host, oldProgram, - configFileParsingDiagnostics + configFileParsingDiagnostics, + typeScriptVersion, }; } @@ -1430,7 +1433,7 @@ export function createProgram(createProgramOptions: CreateProgramOptions): Progr export function createProgram(rootNames: readonly string[], options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: readonly Diagnostic[]): Program; export function createProgram(rootNamesOrOptions: readonly string[] | CreateProgramOptions, _options?: CompilerOptions, _host?: CompilerHost, _oldProgram?: Program, _configFileParsingDiagnostics?: readonly Diagnostic[]): Program { const createProgramOptions = isArray(rootNamesOrOptions) ? createCreateProgramOptions(rootNamesOrOptions, _options!, _host, _oldProgram, _configFileParsingDiagnostics) : rootNamesOrOptions; // TODO: GH#18217 - const { rootNames, options, configFileParsingDiagnostics, projectReferences } = createProgramOptions; + const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion } = createProgramOptions; let { oldProgram } = createProgramOptions; let processingDefaultLibFiles: SourceFile[] | undefined; @@ -3989,6 +3992,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)); } + verifyDeprecatedCompilerOptions(); verifyProjectReferences(); // List of collected files is complete; validate exhautiveness if this is a project with a file list @@ -4264,6 +4268,53 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg } } + function verifyDeprecatedCompilerOptions() { + const version = typeScriptVersion || versionMajorMinor; + const ignoreDeprecations = options.ignoreDeprecations; + if (ignoreDeprecations) { + if (ignoreDeprecations === DeprecationVersion.v5_0 && (version === DeprecationVersion.v5_0 || version === DeprecationVersion.v5_5)) { + return; + } + else { + createOptionValueDiagnostic("ignoreDeprecations", Diagnostics.Invalid_value_for_ignoreDeprecations); + } + } + if (options.target === ScriptTarget.ES3) { + createDeprecatedDiagnosticForOption(version, "target", "ES3"); + } + if (options.noImplicitUseStrict) { + createDeprecatedDiagnosticForOption(version, "noImplicitUseStrict"); + } + if (options.keyofStringsOnly) { + createDeprecatedDiagnosticForOption(version, "keyofStringsOnly"); + } + if (options.suppressExcessPropertyErrors) { + createDeprecatedDiagnosticForOption(version, "suppressExcessPropertyErrors"); + } + if (options.suppressImplicitAnyIndexErrors) { + createDeprecatedDiagnosticForOption(version, "suppressImplicitAnyIndexErrors"); + } + if (options.noStrictGenericChecks) { + createDeprecatedDiagnosticForOption(version, "noStrictGenericChecks"); + } + if (options.charset) { + createDeprecatedDiagnosticForOption(version, "charset"); + } + if (options.out) { + createDeprecatedDiagnosticForOption(version, "out"); + } + } + + function createDeprecatedDiagnosticForOption(version: string, name: string, value?: string) { + if (version === DeprecationVersion.v6_0) { + createDiagnosticForOption(/*onKey*/ !value, name, /*option2*/ undefined, Diagnostics.Flag_0_is_deprecated_Please_remove_it_from_your_configuration, value || name); + } + else { + createDiagnosticForOption(/*onKey*/ !value, name, /*option2*/ undefined, + Diagnostics.Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_ignoreDeprecations_Colon_2_to_silence_this_error, value || name, DeprecationVersion.v5_5, DeprecationVersion.v5_0); + } + } + function createDiagnosticExplainingFile(file: SourceFile | undefined, fileProcessingReason: FileIncludeReason | undefined, diagnostic: DiagnosticMessage, args: (string | number | undefined)[] | undefined): Diagnostic { let fileIncludeReasons: DiagnosticMessageChain[] | undefined; let relatedInfo: Diagnostic[] | undefined; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 26feec0ada72d..3e8c7aca6d2aa 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -7015,6 +7015,7 @@ export interface CompilerOptions { /** @internal */generateCpuProfile?: string; /** @internal */generateTrace?: string; /** @internal */help?: boolean; + ignoreDeprecations?: string; importHelpers?: boolean; importsNotUsedAsValues?: ImportsNotUsedAsValues; /** @internal */init?: boolean; @@ -7272,6 +7273,8 @@ export interface CreateProgramOptions { host?: CompilerHost; oldProgram?: Program; configFileParsingDiagnostics?: readonly Diagnostic[]; + /** @internal */ + typeScriptVersion?: string; } /** @internal */ @@ -9782,3 +9785,12 @@ export interface Queue { dequeue(): T; isEmpty(): boolean; } + +/** @internal */ +export const enum DeprecationVersion { + /* eslint-disable @typescript-eslint/naming-convention */ + v5_0 = "5.0", + v5_5 = "5.5", + v6_0 = "6.0", + /* eslint-enable @typescript-eslint/naming-convention */ +} diff --git a/src/harness/compilerImpl.ts b/src/harness/compilerImpl.ts index dc694efa4415c..7b7288e2b914e 100644 --- a/src/harness/compilerImpl.ts +++ b/src/harness/compilerImpl.ts @@ -241,7 +241,7 @@ export class CompilationResult { } } -export function compileFiles(host: fakes.CompilerHost, rootFiles: string[] | undefined, compilerOptions: ts.CompilerOptions): CompilationResult { +export function compileFiles(host: fakes.CompilerHost, rootFiles: string[] | undefined, compilerOptions: ts.CompilerOptions, typeScriptVersion?: string): CompilationResult { if (compilerOptions.project || !rootFiles || rootFiles.length === 0) { const project = readProject(host.parseConfigHost, compilerOptions.project, compilerOptions); if (project) { @@ -265,11 +265,10 @@ export function compileFiles(host: fakes.CompilerHost, rootFiles: string[] | und // pre-emit/post-emit error comparison requires declaration emit twice, which can be slow. If it's unlikely to flag any error consistency issues // and if the test is running `skipLibCheck` - an indicator that we want the tets to run quickly - skip the before/after error comparison, too const skipErrorComparison = ts.length(rootFiles) >= 100 || (!!compilerOptions.skipLibCheck && !!compilerOptions.declaration); - - const preProgram = !skipErrorComparison ? ts.createProgram(rootFiles || [], { ...compilerOptions, configFile: compilerOptions.configFile, traceResolution: false }, host) : undefined; + const preProgram = !skipErrorComparison ? ts.createProgram({ rootNames: rootFiles || [], options: { ...compilerOptions, configFile: compilerOptions.configFile, traceResolution: false }, host, typeScriptVersion }) : undefined; const preErrors = preProgram && ts.getPreEmitDiagnostics(preProgram); - const program = ts.createProgram(rootFiles || [], compilerOptions, host); + const program = ts.createProgram({ rootNames: rootFiles || [], options: compilerOptions, host, typeScriptVersion }); const emitResult = program.emit(); const postErrors = ts.getPreEmitDiagnostics(program); const longerErrors = ts.length(preErrors) > postErrors.length ? preErrors : postErrors; diff --git a/src/harness/harnessIO.ts b/src/harness/harnessIO.ts index 4dcfcbca99faa..12cf357770963 100644 --- a/src/harness/harnessIO.ts +++ b/src/harness/harnessIO.ts @@ -350,6 +350,9 @@ export namespace Compiler { if (value === undefined) { throw new Error(`Cannot have undefined value for compiler option '${name}'.`); } + if (name === "typeScriptVersion") { + continue; + } const option = getCommandLineOption(name); if (option) { const errors: ts.Diagnostic[] = []; @@ -412,9 +415,14 @@ export namespace Compiler { currentDirectory = vfs.srcFolder; } + let typeScriptVersion: string | undefined; + // Parse settings if (harnessSettings) { setCompilerOptionsFromHarnessSetting(harnessSettings, options); + if (ts.isString(harnessSettings.typeScriptVersion) && harnessSettings.typeScriptVersion) { + typeScriptVersion = harnessSettings.typeScriptVersion; + } } if (options.rootDirs) { options.rootDirs = ts.map(options.rootDirs, d => ts.getNormalizedAbsolutePath(d, currentDirectory)); @@ -442,7 +450,7 @@ export namespace Compiler { fs.apply(symlinks); } const host = new fakes.CompilerHost(fs, options); - const result = compiler.compileFiles(host, programFileNames, options); + const result = compiler.compileFiles(host, programFileNames, options, typeScriptVersion); result.symlinks = symlinks; return result; } diff --git a/tests/baselines/reference/ES3For-ofTypeCheck1.errors.txt b/tests/baselines/reference/ES3For-ofTypeCheck1.errors.txt index 6437cfbc73d47..310016d0dd689 100644 --- a/tests/baselines/reference/ES3For-ofTypeCheck1.errors.txt +++ b/tests/baselines/reference/ES3For-ofTypeCheck1.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts(1,15): error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts (1 errors) ==== for (var v of "") { } ~~ diff --git a/tests/baselines/reference/ES3For-ofTypeCheck2.errors.txt b/tests/baselines/reference/ES3For-ofTypeCheck2.errors.txt new file mode 100644 index 0000000000000..1dec21b4d265c --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck2.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck2.ts (0 errors) ==== + for (var v of [true]) { } \ No newline at end of file diff --git a/tests/baselines/reference/ES3For-ofTypeCheck4.errors.txt b/tests/baselines/reference/ES3For-ofTypeCheck4.errors.txt index 80e60008da4cc..99fe3ddfbb4c0 100644 --- a/tests/baselines/reference/ES3For-ofTypeCheck4.errors.txt +++ b/tests/baselines/reference/ES3For-ofTypeCheck4.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts(2,17): error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts (1 errors) ==== var union: string | string[]; for (const v of union) { } diff --git a/tests/baselines/reference/ES3For-ofTypeCheck6.errors.txt b/tests/baselines/reference/ES3For-ofTypeCheck6.errors.txt new file mode 100644 index 0000000000000..27b3bd0f0e861 --- /dev/null +++ b/tests/baselines/reference/ES3For-ofTypeCheck6.errors.txt @@ -0,0 +1,7 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts (0 errors) ==== + var union: string[] | number[]; + for (var v of union) { } \ No newline at end of file diff --git a/tests/baselines/reference/accessorWithES3.errors.txt b/tests/baselines/reference/accessorWithES3.errors.txt index 0a2219d85a463..1c6f7b119833f 100644 --- a/tests/baselines/reference/accessorWithES3.errors.txt +++ b/tests/baselines/reference/accessorWithES3.errors.txt @@ -1,9 +1,11 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts(4,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts(10,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts(15,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts(19,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts (4 errors) ==== // error to use accessors in ES3 mode diff --git a/tests/baselines/reference/accessorsNotAllowedInES3.errors.txt b/tests/baselines/reference/accessorsNotAllowedInES3.errors.txt index cee1c8fd537ee..c3386637ef3a7 100644 --- a/tests/baselines/reference/accessorsNotAllowedInES3.errors.txt +++ b/tests/baselines/reference/accessorsNotAllowedInES3.errors.txt @@ -1,7 +1,9 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/accessorsNotAllowedInES3.ts(2,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. tests/cases/compiler/accessorsNotAllowedInES3.ts(4,15): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/accessorsNotAllowedInES3.ts (2 errors) ==== class C { get x(): number { return 1; } diff --git a/tests/baselines/reference/alwaysStrictNoImplicitUseStrict.errors.txt b/tests/baselines/reference/alwaysStrictNoImplicitUseStrict.errors.txt index 1c228e9b31a74..db50715f39f78 100644 --- a/tests/baselines/reference/alwaysStrictNoImplicitUseStrict.errors.txt +++ b/tests/baselines/reference/alwaysStrictNoImplicitUseStrict.errors.txt @@ -1,8 +1,10 @@ error TS5053: Option 'noImplicitUseStrict' cannot be specified with option 'alwaysStrict'. +error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/alwaysStrictNoImplicitUseStrict.ts(3,13): error TS1100: Invalid use of 'arguments' in strict mode. !!! error TS5053: Option 'noImplicitUseStrict' cannot be specified with option 'alwaysStrict'. +!!! error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/alwaysStrictNoImplicitUseStrict.ts (1 errors) ==== module M { export function f() { diff --git a/tests/baselines/reference/ambientAccessors(target=es3).errors.txt b/tests/baselines/reference/ambientAccessors(target=es3).errors.txt new file mode 100644 index 0000000000000..fc5e84daa15b8 --- /dev/null +++ b/tests/baselines/reference/ambientAccessors(target=es3).errors.txt @@ -0,0 +1,19 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/ambientAccessors.ts (0 errors) ==== + // ok to use accessors in ambient class in ES3 + declare class C { + static get a(): string; + static set a(value: string); + + private static get b(): string; + private static set b(foo: string); + + get x(): string; + set x(value: string); + + private get y(): string; + private set y(foo: string); + } \ No newline at end of file diff --git a/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.errors.txt b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.errors.txt new file mode 100644 index 0000000000000..348993c9ca377 --- /dev/null +++ b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.errors.txt @@ -0,0 +1,24 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/Class.ts (0 errors) ==== + import { Configurable } from "./Configurable" + + export class HiddenClass {} + + export class ActualClass extends Configurable(HiddenClass) {} +==== tests/cases/compiler/Configurable.ts (0 errors) ==== + export type Constructor = { + new(...args: any[]): T; + } + export function Configurable>(base: T): T { + return class extends base { + + constructor(...args: any[]) { + super(...args); + } + + }; + } + \ No newline at end of file diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 932c7a9fe79de..ab63f3b08db66 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -7056,6 +7056,7 @@ declare namespace ts { exactOptionalPropertyTypes?: boolean; experimentalDecorators?: boolean; forceConsistentCasingInFileNames?: boolean; + ignoreDeprecations?: string; importHelpers?: boolean; importsNotUsedAsValues?: ImportsNotUsedAsValues; inlineSourceMap?: boolean; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 27c18a9544e57..22bef5bbffdc0 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -3121,6 +3121,7 @@ declare namespace ts { exactOptionalPropertyTypes?: boolean; experimentalDecorators?: boolean; forceConsistentCasingInFileNames?: boolean; + ignoreDeprecations?: string; importHelpers?: boolean; importsNotUsedAsValues?: ImportsNotUsedAsValues; inlineSourceMap?: boolean; diff --git a/tests/baselines/reference/bigIntWithTargetES3.errors.txt b/tests/baselines/reference/bigIntWithTargetES3.errors.txt index f6ad2b5a5077f..464ead818e37a 100644 --- a/tests/baselines/reference/bigIntWithTargetES3.errors.txt +++ b/tests/baselines/reference/bigIntWithTargetES3.errors.txt @@ -1,9 +1,11 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/bigIntWithTargetES3.ts(5,22): error TS2737: BigInt literals are not available when targeting lower than ES2020. tests/cases/compiler/bigIntWithTargetES3.ts(5,29): error TS2737: BigInt literals are not available when targeting lower than ES2020. tests/cases/compiler/bigIntWithTargetES3.ts(5,39): error TS2737: BigInt literals are not available when targeting lower than ES2020. tests/cases/compiler/bigIntWithTargetES3.ts(5,48): error TS2737: BigInt literals are not available when targeting lower than ES2020. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/bigIntWithTargetES3.ts (4 errors) ==== const normalNumber = 123; // should not error let bigintType: bigint; // should not error diff --git a/tests/baselines/reference/checkIndexConstraintOfJavascriptClassExpression.errors.txt b/tests/baselines/reference/checkIndexConstraintOfJavascriptClassExpression.errors.txt index c2defbf869963..2a99b34bf064e 100644 --- a/tests/baselines/reference/checkIndexConstraintOfJavascriptClassExpression.errors.txt +++ b/tests/baselines/reference/checkIndexConstraintOfJavascriptClassExpression.errors.txt @@ -1,8 +1,10 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/weird.js(1,1): error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'? tests/cases/compiler/weird.js(1,23): error TS7006: Parameter 'BaseClass' implicitly has an 'any' type. tests/cases/compiler/weird.js(9,17): error TS7006: Parameter 'error' implicitly has an 'any' type. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/weird.js (3 errors) ==== someFunction(function(BaseClass) { ~~~~~~~~~~~~ diff --git a/tests/baselines/reference/checkJsdocReturnTag1.errors.txt b/tests/baselines/reference/checkJsdocReturnTag1.errors.txt new file mode 100644 index 0000000000000..8c190269c1b9f --- /dev/null +++ b/tests/baselines/reference/checkJsdocReturnTag1.errors.txt @@ -0,0 +1,26 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/jsdoc/returns.js (0 errors) ==== + // @ts-check + /** + * @returns {string} This comment is not currently exposed + */ + function f() { + return "hello"; + } + + /** + * @returns {string=} This comment is not currently exposed + */ + function f1() { + return "hello world"; + } + + /** + * @returns {string|number} This comment is not currently exposed + */ + function f2() { + return 5 || "hello"; + } \ No newline at end of file diff --git a/tests/baselines/reference/checkJsdocReturnTag2.errors.txt b/tests/baselines/reference/checkJsdocReturnTag2.errors.txt index 8ff291f2e5579..40ecfead9bbe7 100644 --- a/tests/baselines/reference/checkJsdocReturnTag2.errors.txt +++ b/tests/baselines/reference/checkJsdocReturnTag2.errors.txt @@ -1,8 +1,10 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/jsdoc/returns.js(6,5): error TS2322: Type 'number' is not assignable to type 'string'. tests/cases/conformance/jsdoc/returns.js(13,5): error TS2322: Type 'number | boolean' is not assignable to type 'string | number'. Type 'boolean' is not assignable to type 'string | number'. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/jsdoc/returns.js (2 errors) ==== // @ts-check /** diff --git a/tests/baselines/reference/compilerOptionsOutAndNoEmit.errors.txt b/tests/baselines/reference/compilerOptionsOutAndNoEmit.errors.txt new file mode 100644 index 0000000000000..0f32c3eed7f4a --- /dev/null +++ b/tests/baselines/reference/compilerOptionsOutAndNoEmit.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.ts (0 errors) ==== + class c { + } + \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames52(target=es2015).errors.txt b/tests/baselines/reference/computedPropertyNames52(target=es2015).errors.txt new file mode 100644 index 0000000000000..e5eb0d9fcff72 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames52(target=es2015).errors.txt @@ -0,0 +1,13 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/es6/computedProperties/computedPropertyNames52.js (0 errors) ==== + const array = []; + for (let i = 0; i < 10; ++i) { + array.push(class C { + [i] = () => C; + static [i] = 100; + }) + } + \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNames52(target=es5).errors.txt b/tests/baselines/reference/computedPropertyNames52(target=es5).errors.txt new file mode 100644 index 0000000000000..e5eb0d9fcff72 --- /dev/null +++ b/tests/baselines/reference/computedPropertyNames52(target=es5).errors.txt @@ -0,0 +1,13 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/es6/computedProperties/computedPropertyNames52.js (0 errors) ==== + const array = []; + for (let i = 0; i < 10; ++i) { + array.push(class C { + [i] = () => C; + static [i] = 100; + }) + } + \ No newline at end of file diff --git a/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/ignoreDeprecations/tsconfig.json b/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/ignoreDeprecations/tsconfig.json new file mode 100644 index 0000000000000..bb117308adcf3 --- /dev/null +++ b/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/ignoreDeprecations/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "ignoreDeprecations": "someString" + } +} diff --git a/tests/baselines/reference/constDeclarations-useBeforeDefinition2.errors.txt b/tests/baselines/reference/constDeclarations-useBeforeDefinition2.errors.txt index 930cf63358ead..13565142719bc 100644 --- a/tests/baselines/reference/constDeclarations-useBeforeDefinition2.errors.txt +++ b/tests/baselines/reference/constDeclarations-useBeforeDefinition2.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/file1.ts(1,1): error TS2448: Block-scoped variable 'c' used before its declaration. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/file1.ts (1 errors) ==== c; ~ diff --git a/tests/baselines/reference/controlFlowJavascript.errors.txt b/tests/baselines/reference/controlFlowJavascript.errors.txt new file mode 100644 index 0000000000000..9c1fda7e5af08 --- /dev/null +++ b/tests/baselines/reference/controlFlowJavascript.errors.txt @@ -0,0 +1,109 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/controlFlowJavascript.js (0 errors) ==== + let cond = true; + + // CFA for 'let' and no initializer + function f1() { + let x; + if (cond) { + x = 1; + } + if (cond) { + x = "hello"; + } + const y = x; // string | number | undefined + } + + // CFA for 'let' and 'undefined' initializer + function f2() { + let x = undefined; + if (cond) { + x = 1; + } + if (cond) { + x = "hello"; + } + const y = x; // string | number | undefined + } + + // CFA for 'let' and 'null' initializer + function f3() { + let x = null; + if (cond) { + x = 1; + } + if (cond) { + x = "hello"; + } + const y = x; // string | number | null + } + + // CFA for 'var' with no initializer + function f5() { + var x; + if (cond) { + x = 1; + } + if (cond) { + x = "hello"; + } + const y = x; // string | number | undefined + } + + // CFA for 'var' with 'undefined' initializer + function f6() { + var x = undefined; + if (cond) { + x = 1; + } + if (cond) { + x = "hello"; + } + const y = x; // string | number | undefined + } + + // CFA for 'var' with 'null' initializer + function f7() { + var x = null; + if (cond) { + x = 1; + } + if (cond) { + x = "hello"; + } + const y = x; // string | number | null + } + + // No CFA for captured outer variables + function f9() { + let x; + if (cond) { + x = 1; + } + if (cond) { + x = "hello"; + } + const y = x; // string | number | undefined + function f() { + const z = x; // any + } + } + + // No CFA for captured outer variables + function f10() { + let x; + if (cond) { + x = 1; + } + if (cond) { + x = "hello"; + } + const y = x; // string | number | undefined + const f = () => { + const z = x; // any + }; + } + \ No newline at end of file diff --git a/tests/baselines/reference/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt b/tests/baselines/reference/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt index 0cf59ee035bb9..c6d0d1d9bf6d2 100644 --- a/tests/baselines/reference/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt +++ b/tests/baselines/reference/declFileWithErrorsInInputDeclarationFileWithOut.errors.txt @@ -1,9 +1,11 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/declFile.d.ts(2,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context. tests/cases/compiler/declFile.d.ts(3,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context. tests/cases/compiler/declFile.d.ts(5,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context. tests/cases/compiler/declFile.d.ts(7,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/client.ts (0 errors) ==== /// var x = new M.C(); // Declaration file wont get emitted because there are errors in declaration file diff --git a/tests/baselines/reference/declarationFileOverwriteErrorWithOut.errors.txt b/tests/baselines/reference/declarationFileOverwriteErrorWithOut.errors.txt index d58378fa9b0d8..f470856f22a1e 100644 --- a/tests/baselines/reference/declarationFileOverwriteErrorWithOut.errors.txt +++ b/tests/baselines/reference/declarationFileOverwriteErrorWithOut.errors.txt @@ -1,9 +1,11 @@ error TS5055: Cannot write file 'tests/cases/compiler/out.d.ts' because it would overwrite input file. Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS5055: Cannot write file 'tests/cases/compiler/out.d.ts' because it would overwrite input file. !!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/out.d.ts (0 errors) ==== declare class c { } diff --git a/tests/baselines/reference/definePropertyOutputES3.errors.txt b/tests/baselines/reference/definePropertyOutputES3.errors.txt index c527477922545..d9e5903f68c87 100644 --- a/tests/baselines/reference/definePropertyOutputES3.errors.txt +++ b/tests/baselines/reference/definePropertyOutputES3.errors.txt @@ -1,7 +1,9 @@ error TS5048: Option 'useDefineForClassFields' cannot be specified when option 'target' is 'ES3'. +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS5048: Option 'useDefineForClassFields' cannot be specified when option 'target' is 'ES3'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/classes/propertyMemberDeclarations/definePropertyOutputES3.ts (0 errors) ==== class A { a = 12 diff --git a/tests/baselines/reference/deprecatedCompilerOptions1.errors.txt b/tests/baselines/reference/deprecatedCompilerOptions1.errors.txt new file mode 100644 index 0000000000000..cfcdb3bf97279 --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions1.errors.txt @@ -0,0 +1,43 @@ +/foo/tsconfig.json(3,19): error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +/foo/tsconfig.json(4,9): error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +/foo/tsconfig.json(5,9): error TS5101: Flag 'keyofStringsOnly' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +/foo/tsconfig.json(6,9): error TS5101: Flag 'suppressExcessPropertyErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +/foo/tsconfig.json(7,9): error TS5101: Flag 'suppressImplicitAnyIndexErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +/foo/tsconfig.json(8,9): error TS5101: Flag 'noStrictGenericChecks' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +/foo/tsconfig.json(9,9): error TS5101: Flag 'charset' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +/foo/tsconfig.json(10,9): error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +==== /foo/tsconfig.json (8 errors) ==== + { + "compilerOptions": { + "target": "ES3", + ~~~~~ +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + "noImplicitUseStrict": true, + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + "keyofStringsOnly": true, + ~~~~~~~~~~~~~~~~~~ +!!! error TS5101: Flag 'keyofStringsOnly' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + "suppressExcessPropertyErrors": true, + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5101: Flag 'suppressExcessPropertyErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + "suppressImplicitAnyIndexErrors": true, + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5101: Flag 'suppressImplicitAnyIndexErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + "noStrictGenericChecks": true, + ~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5101: Flag 'noStrictGenericChecks' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + "charset": "utf8", + ~~~~~~~~~ +!!! error TS5101: Flag 'charset' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + "out": "dist.js" + ~~~~~ +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + } + } + +==== /foo/a.ts (0 errors) ==== + const a = 1; + \ No newline at end of file diff --git a/tests/baselines/reference/deprecatedCompilerOptions1.js b/tests/baselines/reference/deprecatedCompilerOptions1.js new file mode 100644 index 0000000000000..a4778b0abf319 --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions1.js @@ -0,0 +1,6 @@ +//// [a.ts] +const a = 1; + + +//// [dist.js] +var a = 1; diff --git a/tests/baselines/reference/deprecatedCompilerOptions1.symbols b/tests/baselines/reference/deprecatedCompilerOptions1.symbols new file mode 100644 index 0000000000000..d0f69434bc68f --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions1.symbols @@ -0,0 +1,4 @@ +=== /foo/a.ts === +const a = 1; +>a : Symbol(a, Decl(a.ts, 0, 5)) + diff --git a/tests/baselines/reference/deprecatedCompilerOptions1.types b/tests/baselines/reference/deprecatedCompilerOptions1.types new file mode 100644 index 0000000000000..ce7bf5f351b1a --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions1.types @@ -0,0 +1,5 @@ +=== /foo/a.ts === +const a = 1; +>a : 1 +>1 : 1 + diff --git a/tests/baselines/reference/deprecatedCompilerOptions2.js b/tests/baselines/reference/deprecatedCompilerOptions2.js new file mode 100644 index 0000000000000..a4778b0abf319 --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions2.js @@ -0,0 +1,6 @@ +//// [a.ts] +const a = 1; + + +//// [dist.js] +var a = 1; diff --git a/tests/baselines/reference/deprecatedCompilerOptions2.symbols b/tests/baselines/reference/deprecatedCompilerOptions2.symbols new file mode 100644 index 0000000000000..d0f69434bc68f --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions2.symbols @@ -0,0 +1,4 @@ +=== /foo/a.ts === +const a = 1; +>a : Symbol(a, Decl(a.ts, 0, 5)) + diff --git a/tests/baselines/reference/deprecatedCompilerOptions2.types b/tests/baselines/reference/deprecatedCompilerOptions2.types new file mode 100644 index 0000000000000..ce7bf5f351b1a --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions2.types @@ -0,0 +1,5 @@ +=== /foo/a.ts === +const a = 1; +>a : 1 +>1 : 1 + diff --git a/tests/baselines/reference/deprecatedCompilerOptions3.errors.txt b/tests/baselines/reference/deprecatedCompilerOptions3.errors.txt new file mode 100644 index 0000000000000..b745353cd68c6 --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions3.errors.txt @@ -0,0 +1,43 @@ +/foo/tsconfig.json(3,19): error TS5102: Flag 'ES3' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(4,9): error TS5102: Flag 'noImplicitUseStrict' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(5,9): error TS5102: Flag 'keyofStringsOnly' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(6,9): error TS5102: Flag 'suppressExcessPropertyErrors' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(7,9): error TS5102: Flag 'suppressImplicitAnyIndexErrors' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(8,9): error TS5102: Flag 'noStrictGenericChecks' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(9,9): error TS5102: Flag 'charset' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(10,9): error TS5102: Flag 'out' is deprecated. Please remove it from your configuration. + + +==== /foo/tsconfig.json (8 errors) ==== + { + "compilerOptions": { + "target": "ES3", + ~~~~~ +!!! error TS5102: Flag 'ES3' is deprecated. Please remove it from your configuration. + "noImplicitUseStrict": true, + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5102: Flag 'noImplicitUseStrict' is deprecated. Please remove it from your configuration. + "keyofStringsOnly": true, + ~~~~~~~~~~~~~~~~~~ +!!! error TS5102: Flag 'keyofStringsOnly' is deprecated. Please remove it from your configuration. + "suppressExcessPropertyErrors": true, + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5102: Flag 'suppressExcessPropertyErrors' is deprecated. Please remove it from your configuration. + "suppressImplicitAnyIndexErrors": true, + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5102: Flag 'suppressImplicitAnyIndexErrors' is deprecated. Please remove it from your configuration. + "noStrictGenericChecks": true, + ~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5102: Flag 'noStrictGenericChecks' is deprecated. Please remove it from your configuration. + "charset": "utf8", + ~~~~~~~~~ +!!! error TS5102: Flag 'charset' is deprecated. Please remove it from your configuration. + "out": "dist.js", + ~~~~~ +!!! error TS5102: Flag 'out' is deprecated. Please remove it from your configuration. + } + } + +==== /foo/a.ts (0 errors) ==== + const a = 1; + \ No newline at end of file diff --git a/tests/baselines/reference/deprecatedCompilerOptions3.js b/tests/baselines/reference/deprecatedCompilerOptions3.js new file mode 100644 index 0000000000000..a4778b0abf319 --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions3.js @@ -0,0 +1,6 @@ +//// [a.ts] +const a = 1; + + +//// [dist.js] +var a = 1; diff --git a/tests/baselines/reference/deprecatedCompilerOptions3.symbols b/tests/baselines/reference/deprecatedCompilerOptions3.symbols new file mode 100644 index 0000000000000..d0f69434bc68f --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions3.symbols @@ -0,0 +1,4 @@ +=== /foo/a.ts === +const a = 1; +>a : Symbol(a, Decl(a.ts, 0, 5)) + diff --git a/tests/baselines/reference/deprecatedCompilerOptions3.types b/tests/baselines/reference/deprecatedCompilerOptions3.types new file mode 100644 index 0000000000000..ce7bf5f351b1a --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions3.types @@ -0,0 +1,5 @@ +=== /foo/a.ts === +const a = 1; +>a : 1 +>1 : 1 + diff --git a/tests/baselines/reference/deprecatedCompilerOptions4.js b/tests/baselines/reference/deprecatedCompilerOptions4.js new file mode 100644 index 0000000000000..a4778b0abf319 --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions4.js @@ -0,0 +1,6 @@ +//// [a.ts] +const a = 1; + + +//// [dist.js] +var a = 1; diff --git a/tests/baselines/reference/deprecatedCompilerOptions4.symbols b/tests/baselines/reference/deprecatedCompilerOptions4.symbols new file mode 100644 index 0000000000000..d0f69434bc68f --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions4.symbols @@ -0,0 +1,4 @@ +=== /foo/a.ts === +const a = 1; +>a : Symbol(a, Decl(a.ts, 0, 5)) + diff --git a/tests/baselines/reference/deprecatedCompilerOptions4.types b/tests/baselines/reference/deprecatedCompilerOptions4.types new file mode 100644 index 0000000000000..ce7bf5f351b1a --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions4.types @@ -0,0 +1,5 @@ +=== /foo/a.ts === +const a = 1; +>a : 1 +>1 : 1 + diff --git a/tests/baselines/reference/deprecatedCompilerOptions5.errors.txt b/tests/baselines/reference/deprecatedCompilerOptions5.errors.txt new file mode 100644 index 0000000000000..a214229ef01e7 --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions5.errors.txt @@ -0,0 +1,47 @@ +/foo/tsconfig.json(3,19): error TS5102: Flag 'ES3' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(4,9): error TS5102: Flag 'noImplicitUseStrict' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(5,9): error TS5102: Flag 'keyofStringsOnly' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(6,9): error TS5102: Flag 'suppressExcessPropertyErrors' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(7,9): error TS5102: Flag 'suppressImplicitAnyIndexErrors' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(8,9): error TS5102: Flag 'noStrictGenericChecks' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(9,9): error TS5102: Flag 'charset' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(10,9): error TS5102: Flag 'out' is deprecated. Please remove it from your configuration. +/foo/tsconfig.json(11,31): error TS5103: Invalid value for '--ignoreDeprecations'. + + +==== /foo/tsconfig.json (9 errors) ==== + { + "compilerOptions": { + "target": "ES3", + ~~~~~ +!!! error TS5102: Flag 'ES3' is deprecated. Please remove it from your configuration. + "noImplicitUseStrict": true, + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5102: Flag 'noImplicitUseStrict' is deprecated. Please remove it from your configuration. + "keyofStringsOnly": true, + ~~~~~~~~~~~~~~~~~~ +!!! error TS5102: Flag 'keyofStringsOnly' is deprecated. Please remove it from your configuration. + "suppressExcessPropertyErrors": true, + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5102: Flag 'suppressExcessPropertyErrors' is deprecated. Please remove it from your configuration. + "suppressImplicitAnyIndexErrors": true, + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5102: Flag 'suppressImplicitAnyIndexErrors' is deprecated. Please remove it from your configuration. + "noStrictGenericChecks": true, + ~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5102: Flag 'noStrictGenericChecks' is deprecated. Please remove it from your configuration. + "charset": "utf8", + ~~~~~~~~~ +!!! error TS5102: Flag 'charset' is deprecated. Please remove it from your configuration. + "out": "dist.js", + ~~~~~ +!!! error TS5102: Flag 'out' is deprecated. Please remove it from your configuration. + "ignoreDeprecations": "5.0" + ~~~~~ +!!! error TS5103: Invalid value for '--ignoreDeprecations'. + } + } + +==== /foo/a.ts (0 errors) ==== + const a = 1; + \ No newline at end of file diff --git a/tests/baselines/reference/deprecatedCompilerOptions5.js b/tests/baselines/reference/deprecatedCompilerOptions5.js new file mode 100644 index 0000000000000..a4778b0abf319 --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions5.js @@ -0,0 +1,6 @@ +//// [a.ts] +const a = 1; + + +//// [dist.js] +var a = 1; diff --git a/tests/baselines/reference/deprecatedCompilerOptions5.symbols b/tests/baselines/reference/deprecatedCompilerOptions5.symbols new file mode 100644 index 0000000000000..d0f69434bc68f --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions5.symbols @@ -0,0 +1,4 @@ +=== /foo/a.ts === +const a = 1; +>a : Symbol(a, Decl(a.ts, 0, 5)) + diff --git a/tests/baselines/reference/deprecatedCompilerOptions5.types b/tests/baselines/reference/deprecatedCompilerOptions5.types new file mode 100644 index 0000000000000..ce7bf5f351b1a --- /dev/null +++ b/tests/baselines/reference/deprecatedCompilerOptions5.types @@ -0,0 +1,5 @@ +=== /foo/a.ts === +const a = 1; +>a : 1 +>1 : 1 + diff --git a/tests/baselines/reference/dynamicRequire.errors.txt b/tests/baselines/reference/dynamicRequire.errors.txt new file mode 100644 index 0000000000000..8ba05271c5576 --- /dev/null +++ b/tests/baselines/reference/dynamicRequire.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.js (0 errors) ==== + function foo(name) { + var s = require("t/" + name) + } \ No newline at end of file diff --git a/tests/baselines/reference/emptyFile-declaration.errors.txt b/tests/baselines/reference/emptyFile-declaration.errors.txt new file mode 100644 index 0000000000000..8eb03c84bbbd1 --- /dev/null +++ b/tests/baselines/reference/emptyFile-declaration.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/emptyFile-declaration.ts (0 errors) ==== + \ No newline at end of file diff --git a/tests/baselines/reference/emptyFile-souremap.errors.txt b/tests/baselines/reference/emptyFile-souremap.errors.txt new file mode 100644 index 0000000000000..aed7d540a2626 --- /dev/null +++ b/tests/baselines/reference/emptyFile-souremap.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/emptyFile-souremap.ts (0 errors) ==== + \ No newline at end of file diff --git a/tests/baselines/reference/es3-amd.errors.txt b/tests/baselines/reference/es3-amd.errors.txt new file mode 100644 index 0000000000000..ca91e141cd4c0 --- /dev/null +++ b/tests/baselines/reference/es3-amd.errors.txt @@ -0,0 +1,17 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/es3-amd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es3-declaration-amd.errors.txt b/tests/baselines/reference/es3-declaration-amd.errors.txt new file mode 100644 index 0000000000000..d8d870e7dcebe --- /dev/null +++ b/tests/baselines/reference/es3-declaration-amd.errors.txt @@ -0,0 +1,17 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/es3-declaration-amd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es3-jsx-preserve.errors.txt b/tests/baselines/reference/es3-jsx-preserve.errors.txt new file mode 100644 index 0000000000000..1c4633e07639e --- /dev/null +++ b/tests/baselines/reference/es3-jsx-preserve.errors.txt @@ -0,0 +1,10 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/es3-jsx-preserve.tsx (0 errors) ==== + const React: any = null; + + const elem =
; + + \ No newline at end of file diff --git a/tests/baselines/reference/es3-jsx-preserve.types b/tests/baselines/reference/es3-jsx-preserve.types index ac7966455184f..759870ffac5fc 100644 --- a/tests/baselines/reference/es3-jsx-preserve.types +++ b/tests/baselines/reference/es3-jsx-preserve.types @@ -4,8 +4,8 @@ const React: any = null; >null : null const elem =
; ->elem : error ->
: error +>elem : any +>
: any >div : any >div : any diff --git a/tests/baselines/reference/es3-jsx-react-native.errors.txt b/tests/baselines/reference/es3-jsx-react-native.errors.txt new file mode 100644 index 0000000000000..fb08fe2706fbf --- /dev/null +++ b/tests/baselines/reference/es3-jsx-react-native.errors.txt @@ -0,0 +1,10 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/es3-jsx-react-native.tsx (0 errors) ==== + const React: any = null; + + const elem =
; + + \ No newline at end of file diff --git a/tests/baselines/reference/es3-jsx-react-native.types b/tests/baselines/reference/es3-jsx-react-native.types index 3d799442953e3..7cbfbe4684f8b 100644 --- a/tests/baselines/reference/es3-jsx-react-native.types +++ b/tests/baselines/reference/es3-jsx-react-native.types @@ -4,8 +4,8 @@ const React: any = null; >null : null const elem =
; ->elem : error ->
: error +>elem : any +>
: any >div : any >div : any diff --git a/tests/baselines/reference/es3-jsx-react.errors.txt b/tests/baselines/reference/es3-jsx-react.errors.txt new file mode 100644 index 0000000000000..849369b05a324 --- /dev/null +++ b/tests/baselines/reference/es3-jsx-react.errors.txt @@ -0,0 +1,10 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/es3-jsx-react.tsx (0 errors) ==== + const React: any = null; + + const elem =
; + + \ No newline at end of file diff --git a/tests/baselines/reference/es3-jsx-react.types b/tests/baselines/reference/es3-jsx-react.types index 18c9a4f8dccfd..089b3ad47cb46 100644 --- a/tests/baselines/reference/es3-jsx-react.types +++ b/tests/baselines/reference/es3-jsx-react.types @@ -4,8 +4,8 @@ const React: any = null; >null : null const elem =
; ->elem : error ->
: error +>elem : any +>
: any >div : any >div : any diff --git a/tests/baselines/reference/es3-oldStyleOctalLiteralInEnums.errors.txt b/tests/baselines/reference/es3-oldStyleOctalLiteralInEnums.errors.txt index 137b76f660d0a..4ee7b873111ef 100644 --- a/tests/baselines/reference/es3-oldStyleOctalLiteralInEnums.errors.txt +++ b/tests/baselines/reference/es3-oldStyleOctalLiteralInEnums.errors.txt @@ -1,7 +1,9 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/es3-oldStyleOctalLiteralInEnums.ts(2,7): error TS8018: Octal literals are not allowed in enums members initializer. Use the syntax '-0o1'. tests/cases/compiler/es3-oldStyleOctalLiteralInEnums.ts(3,7): error TS8018: Octal literals are not allowed in enums members initializer. Use the syntax '0o2'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/es3-oldStyleOctalLiteralInEnums.ts (2 errors) ==== enum E { x = -01, diff --git a/tests/baselines/reference/es3-oldStyleOctalLiteralTypes.errors.txt b/tests/baselines/reference/es3-oldStyleOctalLiteralTypes.errors.txt index 5fc9843989cec..9cfeb13bb70d4 100644 --- a/tests/baselines/reference/es3-oldStyleOctalLiteralTypes.errors.txt +++ b/tests/baselines/reference/es3-oldStyleOctalLiteralTypes.errors.txt @@ -1,7 +1,9 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/es3-oldStyleOctalLiteralTypes.ts(1,8): error TS8017: Octal literal types must use ES2015 syntax. Use the syntax '0o10'. tests/cases/compiler/es3-oldStyleOctalLiteralTypes.ts(2,8): error TS8017: Octal literal types must use ES2015 syntax. Use the syntax '-0o20'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/es3-oldStyleOctalLiteralTypes.ts (2 errors) ==== let x: 010; ~~~ diff --git a/tests/baselines/reference/es3-sourcemap-amd.errors.txt b/tests/baselines/reference/es3-sourcemap-amd.errors.txt new file mode 100644 index 0000000000000..4bfec16946841 --- /dev/null +++ b/tests/baselines/reference/es3-sourcemap-amd.errors.txt @@ -0,0 +1,17 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/es3-sourcemap-amd.ts (0 errors) ==== + class A + { + constructor () + { + + } + + public B() + { + return 42; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/es3defaultAliasIsQuoted.errors.txt b/tests/baselines/reference/es3defaultAliasIsQuoted.errors.txt new file mode 100644 index 0000000000000..2347bd1c4d29f --- /dev/null +++ b/tests/baselines/reference/es3defaultAliasIsQuoted.errors.txt @@ -0,0 +1,16 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/es3defaultAliasQuoted_file0.ts (0 errors) ==== + export class Foo { + static CONSTANT = "Foo"; + } + + export default function assert(value: boolean) { + if (!value) throw new Error("Assertion failed!"); + } + +==== tests/cases/compiler/es3defaultAliasQuoted_file1.ts (0 errors) ==== + import {Foo, default as assert} from "./es3defaultAliasQuoted_file0"; + assert(Foo.CONSTANT === "Foo"); \ No newline at end of file diff --git a/tests/baselines/reference/esModuleInteropWithExportStar(target=es3).errors.txt b/tests/baselines/reference/esModuleInteropWithExportStar(target=es3).errors.txt new file mode 100644 index 0000000000000..c69adc01e49e3 --- /dev/null +++ b/tests/baselines/reference/esModuleInteropWithExportStar(target=es3).errors.txt @@ -0,0 +1,15 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/fs.d.ts (0 errors) ==== + export const x: number; +==== tests/cases/compiler/mjts.ts (0 errors) ==== + import * as fs from "./fs"; + + fs; + + export * from "./fs"; + export {x} from "./fs"; + export {x as y} from "./fs"; + \ No newline at end of file diff --git a/tests/baselines/reference/excessPropertyErrorsSuppressed.errors.txt b/tests/baselines/reference/excessPropertyErrorsSuppressed.errors.txt new file mode 100644 index 0000000000000..d575cb0abc75f --- /dev/null +++ b/tests/baselines/reference/excessPropertyErrorsSuppressed.errors.txt @@ -0,0 +1,7 @@ +error TS5101: Flag 'suppressExcessPropertyErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'suppressExcessPropertyErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/excessPropertyErrorsSuppressed.ts (0 errors) ==== + var x: { a: string } = { a: "hello", b: 42 }; // No error + \ No newline at end of file diff --git a/tests/baselines/reference/exportAndImport-es3-amd.errors.txt b/tests/baselines/reference/exportAndImport-es3-amd.errors.txt new file mode 100644 index 0000000000000..17eab6b8733ee --- /dev/null +++ b/tests/baselines/reference/exportAndImport-es3-amd.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/es6/modules/m1.ts (0 errors) ==== + export default function f1() { + } + +==== tests/cases/conformance/es6/modules/m2.ts (0 errors) ==== + import f1 from "./m1"; + export default function f2() { + f1(); + } + \ No newline at end of file diff --git a/tests/baselines/reference/exportAndImport-es3.errors.txt b/tests/baselines/reference/exportAndImport-es3.errors.txt new file mode 100644 index 0000000000000..6ca8f25fc07ed --- /dev/null +++ b/tests/baselines/reference/exportAndImport-es3.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/es6/modules/m1.ts (0 errors) ==== + export default function f1() { + } + +==== tests/cases/conformance/es6/modules/m2.ts (0 errors) ==== + import f1 from "./m1"; + export default function f2() { + f1(); + } + \ No newline at end of file diff --git a/tests/baselines/reference/exportDefaultInJsFile01.errors.txt b/tests/baselines/reference/exportDefaultInJsFile01.errors.txt index a281df5928966..f6566102da724 100644 --- a/tests/baselines/reference/exportDefaultInJsFile01.errors.txt +++ b/tests/baselines/reference/exportDefaultInJsFile01.errors.txt @@ -1,8 +1,10 @@ error TS5055: Cannot write file 'tests/cases/conformance/salsa/myFile01.js' because it would overwrite input file. Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS5055: Cannot write file 'tests/cases/conformance/salsa/myFile01.js' because it would overwrite input file. !!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/salsa/myFile01.js (0 errors) ==== export default "hello"; \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores1.errors.txt b/tests/baselines/reference/exportsAndImportsWithUnderscores1.errors.txt index 33d15265cb9aa..d74e291c7bc22 100644 --- a/tests/baselines/reference/exportsAndImportsWithUnderscores1.errors.txt +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores1.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/es6/modules/m1.ts(5,5): error TS1005: ',' expected. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/es6/modules/m1.ts (1 errors) ==== var R: any export default R = { diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores2.errors.txt b/tests/baselines/reference/exportsAndImportsWithUnderscores2.errors.txt new file mode 100644 index 0000000000000..270056ed3c450 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores2.errors.txt @@ -0,0 +1,15 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/es6/modules/m1.ts (0 errors) ==== + var R: any + export default R = { + "__esmodule": true, + "__proto__": {} + } + +==== tests/cases/conformance/es6/modules/m2.ts (0 errors) ==== + import R from "./m1"; + const { __esmodule, __proto__ } = R; + \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores3.errors.txt b/tests/baselines/reference/exportsAndImportsWithUnderscores3.errors.txt new file mode 100644 index 0000000000000..fdac3224fd3d3 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores3.errors.txt @@ -0,0 +1,16 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/es6/modules/m1.ts (0 errors) ==== + var R: any + export default R = { + "___": 30, + "___hello": 21, + "_hi": 40, + } + +==== tests/cases/conformance/es6/modules/m2.ts (0 errors) ==== + import R from "./m1"; + const { ___, ___hello, _hi } = R; + \ No newline at end of file diff --git a/tests/baselines/reference/exportsAndImportsWithUnderscores4.errors.txt b/tests/baselines/reference/exportsAndImportsWithUnderscores4.errors.txt new file mode 100644 index 0000000000000..40cdbed2ffed4 --- /dev/null +++ b/tests/baselines/reference/exportsAndImportsWithUnderscores4.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/es6/modules/m1.ts (0 errors) ==== + declare var console: any; + export function _() { + console.log("_"); + } + export function __() { + console.log("__"); + } + export function ___() { + console.log("___"); + } + export function _hi() { + console.log("_hi"); + } + export function __proto() { + console.log("__proto"); + } + export function __esmodule() { + console.log("__esmodule"); + } + export function ___hello(){ + console.log("___hello"); + } + +==== tests/cases/conformance/es6/modules/m2.ts (0 errors) ==== + import {_, __, ___hello, __esmodule, __proto, _hi} from "./m1"; + _(); + __(); + ___hello(); + __esmodule(); + __proto(); + _hi(); \ No newline at end of file diff --git a/tests/baselines/reference/filesEmittingIntoSameOutputWithOutOption.errors.txt b/tests/baselines/reference/filesEmittingIntoSameOutputWithOutOption.errors.txt new file mode 100644 index 0000000000000..39996874faef4 --- /dev/null +++ b/tests/baselines/reference/filesEmittingIntoSameOutputWithOutOption.errors.txt @@ -0,0 +1,12 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.ts (0 errors) ==== + export class c { + } + +==== tests/cases/compiler/b.ts (0 errors) ==== + function foo() { + } + \ No newline at end of file diff --git a/tests/baselines/reference/genericSetterInClassTypeJsDoc.errors.txt b/tests/baselines/reference/genericSetterInClassTypeJsDoc.errors.txt new file mode 100644 index 0000000000000..6467ce6130c19 --- /dev/null +++ b/tests/baselines/reference/genericSetterInClassTypeJsDoc.errors.txt @@ -0,0 +1,28 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/classes/members/classTypes/genericSetterInClassTypeJsDoc.js (0 errors) ==== + /** + * @template T + */ + class Box { + #value; + + /** @param {T} initialValue */ + constructor(initialValue) { + this.#value = initialValue; + } + + /** @type {T} */ + get value() { + return this.#value; + } + + set value(value) { + this.#value = value; + } + } + + new Box(3).value = 3; + \ No newline at end of file diff --git a/tests/baselines/reference/globalThisVarDeclaration.errors.txt b/tests/baselines/reference/globalThisVarDeclaration.errors.txt index 2e06957903b6e..295d9de5cbb71 100644 --- a/tests/baselines/reference/globalThisVarDeclaration.errors.txt +++ b/tests/baselines/reference/globalThisVarDeclaration.errors.txt @@ -1,9 +1,11 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/es2019/actual.ts(12,5): error TS2339: Property 'a' does not exist on type 'Window'. tests/cases/conformance/es2019/actual.ts(13,5): error TS2339: Property 'b' does not exist on type 'Window'. tests/cases/conformance/es2019/b.js(12,5): error TS2339: Property 'a' does not exist on type 'Window'. tests/cases/conformance/es2019/b.js(13,5): error TS2339: Property 'b' does not exist on type 'Window'. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/es2019/b.js (2 errors) ==== var a = 10; this.a; diff --git a/tests/baselines/reference/importCallExpressionAsyncES3AMD.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES3AMD.errors.txt new file mode 100644 index 0000000000000..70207de4177e1 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES3AMD.errors.txt @@ -0,0 +1,33 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/dynamicImport/test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionAsyncES3CJS.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES3CJS.errors.txt new file mode 100644 index 0000000000000..70207de4177e1 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES3CJS.errors.txt @@ -0,0 +1,33 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/dynamicImport/test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionAsyncES3System.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES3System.errors.txt new file mode 100644 index 0000000000000..70207de4177e1 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES3System.errors.txt @@ -0,0 +1,33 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/dynamicImport/test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/importCallExpressionAsyncES3UMD.errors.txt b/tests/baselines/reference/importCallExpressionAsyncES3UMD.errors.txt new file mode 100644 index 0000000000000..70207de4177e1 --- /dev/null +++ b/tests/baselines/reference/importCallExpressionAsyncES3UMD.errors.txt @@ -0,0 +1,33 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/dynamicImport/test.ts (0 errors) ==== + export async function fn() { + const req = await import('./test') // ONE + } + + export class cl1 { + public async m() { + const req = await import('./test') // TWO + } + } + + export const obj = { + m: async () => { + const req = await import('./test') // THREE + } + } + + export class cl2 { + public p = { + m: async () => { + const req = await import('./test') // FOUR + } + } + } + + export const l = async () => { + const req = await import('./test') // FIVE + } + \ No newline at end of file diff --git a/tests/baselines/reference/incrementalOut.errors.txt b/tests/baselines/reference/incrementalOut.errors.txt new file mode 100644 index 0000000000000..a0f5cbfaaa06e --- /dev/null +++ b/tests/baselines/reference/incrementalOut.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/incrementalOut.ts (0 errors) ==== + const x = 10; + + \ No newline at end of file diff --git a/tests/baselines/reference/inferringClassMembersFromAssignments.errors.txt b/tests/baselines/reference/inferringClassMembersFromAssignments.errors.txt index 44ab30d997aae..b6e036bd7e122 100644 --- a/tests/baselines/reference/inferringClassMembersFromAssignments.errors.txt +++ b/tests/baselines/reference/inferringClassMembersFromAssignments.errors.txt @@ -1,8 +1,10 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/salsa/a.js(14,13): error TS7008: Member 'inMethodNullable' implicitly has an 'any' type. tests/cases/conformance/salsa/a.js(20,9): error TS2322: Type 'string' is not assignable to type 'number'. tests/cases/conformance/salsa/a.js(39,9): error TS2322: Type 'boolean' is not assignable to type 'number'. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/salsa/a.js (3 errors) ==== class C { constructor() { diff --git a/tests/baselines/reference/inlineSourceMap.errors.txt b/tests/baselines/reference/inlineSourceMap.errors.txt new file mode 100644 index 0000000000000..f8e9aad4791ba --- /dev/null +++ b/tests/baselines/reference/inlineSourceMap.errors.txt @@ -0,0 +1,7 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/inlineSourceMap.ts (0 errors) ==== + var x = 0; + console.log(x); \ No newline at end of file diff --git a/tests/baselines/reference/inlineSourceMap2.errors.txt b/tests/baselines/reference/inlineSourceMap2.errors.txt index b9c1ab03e2d11..5626231e5889e 100644 --- a/tests/baselines/reference/inlineSourceMap2.errors.txt +++ b/tests/baselines/reference/inlineSourceMap2.errors.txt @@ -1,9 +1,13 @@ error TS5053: Option 'mapRoot' cannot be specified with option 'inlineSourceMap'. error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'. +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS5053: Option 'mapRoot' cannot be specified with option 'inlineSourceMap'. !!! error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/inlineSourceMap2.ts (0 errors) ==== // configuration errors diff --git a/tests/baselines/reference/inlineSources.errors.txt b/tests/baselines/reference/inlineSources.errors.txt new file mode 100644 index 0000000000000..df7cdc30e96e7 --- /dev/null +++ b/tests/baselines/reference/inlineSources.errors.txt @@ -0,0 +1,13 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.ts (0 errors) ==== + var a = 0; + console.log(a); + +==== tests/cases/compiler/b.ts (0 errors) ==== + var b = 0; + console.log(b); \ No newline at end of file diff --git a/tests/baselines/reference/inlineSources2.errors.txt b/tests/baselines/reference/inlineSources2.errors.txt new file mode 100644 index 0000000000000..df7cdc30e96e7 --- /dev/null +++ b/tests/baselines/reference/inlineSources2.errors.txt @@ -0,0 +1,13 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.ts (0 errors) ==== + var a = 0; + console.log(a); + +==== tests/cases/compiler/b.ts (0 errors) ==== + var b = 0; + console.log(b); \ No newline at end of file diff --git a/tests/baselines/reference/isLiteral2.errors.txt b/tests/baselines/reference/isLiteral2.errors.txt new file mode 100644 index 0000000000000..0b670503c868d --- /dev/null +++ b/tests/baselines/reference/isLiteral2.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/isLiteral2.ts (0 errors) ==== + var x: number = 02343 \ No newline at end of file diff --git a/tests/baselines/reference/isolatedModulesOut.errors.txt b/tests/baselines/reference/isolatedModulesOut.errors.txt index ce44a3de5b39d..b82ce3b006ef4 100644 --- a/tests/baselines/reference/isolatedModulesOut.errors.txt +++ b/tests/baselines/reference/isolatedModulesOut.errors.txt @@ -1,9 +1,11 @@ error TS5053: Option 'out' cannot be specified with option 'isolatedModules'. +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/file1.ts(1,1): error TS6131: Cannot compile modules using option 'out' unless the '--module' flag is 'amd' or 'system'. tests/cases/compiler/file2.ts(1,1): error TS1208: 'file2.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module. !!! error TS5053: Option 'out' cannot be specified with option 'isolatedModules'. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/file1.ts (1 errors) ==== export var x; ~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.errors.txt b/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.errors.txt new file mode 100644 index 0000000000000..e75c4b5f85005 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.errors.txt @@ -0,0 +1,10 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.js (0 errors) ==== + class c { + method(a) { + let x = a => this.method(a); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationDuplicateFunctionImplementation.errors.txt b/tests/baselines/reference/jsFileCompilationDuplicateFunctionImplementation.errors.txt index fb0c214ddf657..764e34411cc05 100644 --- a/tests/baselines/reference/jsFileCompilationDuplicateFunctionImplementation.errors.txt +++ b/tests/baselines/reference/jsFileCompilationDuplicateFunctionImplementation.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/a.ts(1,10): error TS2393: Duplicate function implementation. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/b.js (0 errors) ==== function foo() { return 10; diff --git a/tests/baselines/reference/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt b/tests/baselines/reference/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt index 78eb22546e8b0..bcbb26d58db12 100644 --- a/tests/baselines/reference/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt +++ b/tests/baselines/reference/jsFileCompilationDuplicateFunctionImplementationFileOrderReversed.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/a.ts(1,10): error TS2393: Duplicate function implementation. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/a.ts (1 errors) ==== function foo() { ~~~ diff --git a/tests/baselines/reference/jsFileCompilationDuplicateVariable.errors.txt b/tests/baselines/reference/jsFileCompilationDuplicateVariable.errors.txt new file mode 100644 index 0000000000000..07a9327017f00 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationDuplicateVariable.errors.txt @@ -0,0 +1,10 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.ts (0 errors) ==== + var x = 10; + +==== tests/cases/compiler/b.js (0 errors) ==== + var x = "hello"; // Error is recorded here, but suppressed because the js file isn't checked + \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationDuplicateVariable.js b/tests/baselines/reference/jsFileCompilationDuplicateVariable.js index 11416c427f7b1..6286060cac053 100644 --- a/tests/baselines/reference/jsFileCompilationDuplicateVariable.js +++ b/tests/baselines/reference/jsFileCompilationDuplicateVariable.js @@ -15,18 +15,3 @@ var x = "hello"; // Error is recorded here, but suppressed because the js file i //// [out.d.ts] declare var x: number; declare var x: string; - - -//// [DtsFileErrors] - - -out.d.ts(2,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'number', but here has type 'string'. - - -==== out.d.ts (1 errors) ==== - declare var x: number; - declare var x: string; - ~ -!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'number', but here has type 'string'. -!!! related TS6203 out.d.ts:1:13: 'x' was also declared here. - \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationDuplicateVariableErrorReported.errors.txt b/tests/baselines/reference/jsFileCompilationDuplicateVariableErrorReported.errors.txt index 9bf2bcd60564e..70c69f8a697cb 100644 --- a/tests/baselines/reference/jsFileCompilationDuplicateVariableErrorReported.errors.txt +++ b/tests/baselines/reference/jsFileCompilationDuplicateVariableErrorReported.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/a.ts(1,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'string', but here has type 'number'. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/b.js (0 errors) ==== var x = "hello"; diff --git a/tests/baselines/reference/jsFileCompilationEmitDeclarations.errors.txt b/tests/baselines/reference/jsFileCompilationEmitDeclarations.errors.txt new file mode 100644 index 0000000000000..5b0f27748e9ae --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationEmitDeclarations.errors.txt @@ -0,0 +1,12 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.ts (0 errors) ==== + class c { + } + +==== tests/cases/compiler/b.js (0 errors) ==== + function foo() { + } + \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationEmitTrippleSlashReference.errors.txt b/tests/baselines/reference/jsFileCompilationEmitTrippleSlashReference.errors.txt new file mode 100644 index 0000000000000..e13b0b0034976 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationEmitTrippleSlashReference.errors.txt @@ -0,0 +1,17 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.ts (0 errors) ==== + class c { + } + +==== tests/cases/compiler/b.js (0 errors) ==== + /// + function foo() { + } + +==== tests/cases/compiler/c.js (0 errors) ==== + function bar() { + } + \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt b/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt new file mode 100644 index 0000000000000..55dda25c8e57f --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.errors.txt @@ -0,0 +1,17 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.ts (0 errors) ==== + class c { + } + +==== tests/cases/compiler/b.ts (0 errors) ==== + /// + function foo() { + } + +==== tests/cases/compiler/c.js (0 errors) ==== + function bar() { + } + \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationLetBeingRenamed.errors.txt b/tests/baselines/reference/jsFileCompilationLetBeingRenamed.errors.txt new file mode 100644 index 0000000000000..6cdf98d454867 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationLetBeingRenamed.errors.txt @@ -0,0 +1,10 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.js (0 errors) ==== + function foo(a) { + for (let a = 0; a < 10; a++) { + // do something + } + } \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationLetDeclarationOrder.errors.txt b/tests/baselines/reference/jsFileCompilationLetDeclarationOrder.errors.txt new file mode 100644 index 0000000000000..eca932f2836d1 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationLetDeclarationOrder.errors.txt @@ -0,0 +1,12 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/b.js (0 errors) ==== + let a = 10; + b = 30; + +==== tests/cases/compiler/a.ts (0 errors) ==== + let b = 30; + a = 10; + \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationLetDeclarationOrder2.errors.txt b/tests/baselines/reference/jsFileCompilationLetDeclarationOrder2.errors.txt index 4ffbabdd06394..606c65b81bd1c 100644 --- a/tests/baselines/reference/jsFileCompilationLetDeclarationOrder2.errors.txt +++ b/tests/baselines/reference/jsFileCompilationLetDeclarationOrder2.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/a.ts(2,1): error TS2448: Block-scoped variable 'a' used before its declaration. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/a.ts (1 errors) ==== let b = 30; a = 10; diff --git a/tests/baselines/reference/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt b/tests/baselines/reference/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt new file mode 100644 index 0000000000000..f44808ed83580 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.errors.txt @@ -0,0 +1,17 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.ts (0 errors) ==== + class c { + } + +==== tests/cases/compiler/b.ts (0 errors) ==== + /// + //no error on above reference since not emitting declarations + function foo() { + } + +==== tests/cases/compiler/c.js (0 errors) ==== + function bar() { + } \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationNonNullAssertion.errors.txt b/tests/baselines/reference/jsFileCompilationNonNullAssertion.errors.txt index 68250662d890c..2733fce8096c1 100644 --- a/tests/baselines/reference/jsFileCompilationNonNullAssertion.errors.txt +++ b/tests/baselines/reference/jsFileCompilationNonNullAssertion.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. /src/a.js(1,1): error TS8013: Non-null assertions can only be used in TypeScript files. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== /src/a.js (1 errors) ==== 0! ~~ diff --git a/tests/baselines/reference/jsFileCompilationRestParamJsDocFunction.errors.txt b/tests/baselines/reference/jsFileCompilationRestParamJsDocFunction.errors.txt new file mode 100644 index 0000000000000..e06ac23438ee9 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationRestParamJsDocFunction.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/_apply.js (0 errors) ==== + /** + * A faster alternative to `Function#apply`, this function invokes `func` + * with the `this` binding of `thisArg` and the arguments of `args`. + * + * @private + * @param {Function} func The function to invoke. + * @param {*} thisArg The `this` binding of `func`. + * @param {...*} args The arguments to invoke `func` with. + * @returns {*} Returns the result of `func`. + */ + function apply(func, thisArg, ...args) { + var length = args.length; + switch (length) { + case 0: return func.call(thisArg); + case 1: return func.call(thisArg, args[0]); + case 2: return func.call(thisArg, args[0], args[1]); + case 3: return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); + } + + export default apply; \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationRestParameter.errors.txt b/tests/baselines/reference/jsFileCompilationRestParameter.errors.txt new file mode 100644 index 0000000000000..99866532812f7 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationRestParameter.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.js (0 errors) ==== + function foo(...a) { } \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationShortHandProperty.errors.txt b/tests/baselines/reference/jsFileCompilationShortHandProperty.errors.txt new file mode 100644 index 0000000000000..c5dd3c1dd6081 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationShortHandProperty.errors.txt @@ -0,0 +1,13 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.js (0 errors) ==== + function foo() { + var a = 10; + var b = "Hello"; + return { + a, + b + }; + } \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationTypeAssertions.errors.txt b/tests/baselines/reference/jsFileCompilationTypeAssertions.errors.txt index c120f1de95352..74b8ac029edf1 100644 --- a/tests/baselines/reference/jsFileCompilationTypeAssertions.errors.txt +++ b/tests/baselines/reference/jsFileCompilationTypeAssertions.errors.txt @@ -1,8 +1,10 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. /src/a.js(1,6): error TS8016: Type assertion expressions can only be used in TypeScript files. /src/a.js(2,10): error TS17008: JSX element 'string' has no corresponding closing tag. /src/a.js(3,1): error TS1005: 'this.member.a = 0 : 0 ->this.member.a : error +>this.member.a : any >this.member : {} >this : this >member : {} @@ -48,7 +48,7 @@ var obj = { obj.property.a = 0; >obj.property.a = 0 : 0 ->obj.property.a : error +>obj.property.a : any >obj.property : {} >obj : { property: {}; } >property : {} diff --git a/tests/baselines/reference/jsdocAccessibilityTagsDeclarations.errors.txt b/tests/baselines/reference/jsdocAccessibilityTagsDeclarations.errors.txt new file mode 100644 index 0000000000000..7ecbef65234b2 --- /dev/null +++ b/tests/baselines/reference/jsdocAccessibilityTagsDeclarations.errors.txt @@ -0,0 +1,42 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/jsdoc/jsdocAccessibilityTagDeclarations.js (0 errors) ==== + class Protected { + /** @protected */ + constructor(c) { + /** @protected */ + this.c = c + } + /** @protected */ + m() { + return this.c + } + /** @protected */ + get p() { return this.c } + /** @protected */ + set p(value) { this.c = value } + } + + class Private { + /** @private */ + constructor(c) { + /** @private */ + this.c = c + } + /** @private */ + m() { + return this.c + } + /** @private */ + get p() { return this.c } + /** @private */ + set p(value) { this.c = value } + } + + // https://github.com/microsoft/TypeScript/issues/38401 + class C { + constructor(/** @public */ x, /** @protected */ y, /** @private */ z) { + } + } \ No newline at end of file diff --git a/tests/baselines/reference/jsdocLiteral.errors.txt b/tests/baselines/reference/jsdocLiteral.errors.txt new file mode 100644 index 0000000000000..f0d06542c360d --- /dev/null +++ b/tests/baselines/reference/jsdocLiteral.errors.txt @@ -0,0 +1,16 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/jsdoc/in.js (0 errors) ==== + /** + * @param {'literal'} p1 + * @param {"literal"} p2 + * @param {'literal' | 'other'} p3 + * @param {'literal' | number} p4 + * @param {12 | true | 'str'} p5 + */ + function f(p1, p2, p3, p4, p5) { + return p1 + p2 + p3 + p4 + p5 + '.'; + } + \ No newline at end of file diff --git a/tests/baselines/reference/jsdocNeverUndefinedNull.errors.txt b/tests/baselines/reference/jsdocNeverUndefinedNull.errors.txt new file mode 100644 index 0000000000000..e13cd6e7eb05b --- /dev/null +++ b/tests/baselines/reference/jsdocNeverUndefinedNull.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/jsdoc/in.js (0 errors) ==== + /** + * @param {never} p1 + * @param {undefined} p2 + * @param {null} p3 + * @returns {void} nothing + */ + function f(p1, p2, p3) { + } + \ No newline at end of file diff --git a/tests/baselines/reference/jsdocReadonlyDeclarations.errors.txt b/tests/baselines/reference/jsdocReadonlyDeclarations.errors.txt new file mode 100644 index 0000000000000..608e95db29458 --- /dev/null +++ b/tests/baselines/reference/jsdocReadonlyDeclarations.errors.txt @@ -0,0 +1,29 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/jsdoc/jsdocReadonlyDeclarations.js (0 errors) ==== + class C { + /** @readonly */ + x = 6 + /** @readonly */ + constructor(n) { + this.x = n + /** + * @readonly + * @type {number} + */ + this.y = n + } + } + new C().x + + function F() { + /** @readonly */ + this.z = 1 + } + + // https://github.com/microsoft/TypeScript/issues/38401 + class D { + constructor(/** @readonly */ x) {} + } \ No newline at end of file diff --git a/tests/baselines/reference/jsdocReturnTag1.errors.txt b/tests/baselines/reference/jsdocReturnTag1.errors.txt new file mode 100644 index 0000000000000..27579a2a882b3 --- /dev/null +++ b/tests/baselines/reference/jsdocReturnTag1.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/jsdoc/returns.js (0 errors) ==== + /** + * @returns {string} This comment is not currently exposed + */ + function f() { + return 5; + } + + /** + * @returns {string=} This comment is not currently exposed + */ + function f1() { + return 5; + } + + /** + * @returns {string|number} This comment is not currently exposed + */ + function f2() { + return 5 || "hello"; + } \ No newline at end of file diff --git a/tests/baselines/reference/keepImportsInDts3.errors.txt b/tests/baselines/reference/keepImportsInDts3.errors.txt new file mode 100644 index 0000000000000..2a672b947e8a2 --- /dev/null +++ b/tests/baselines/reference/keepImportsInDts3.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== c:/test.ts (0 errors) ==== + export {}; +==== c:/app/main.ts (0 errors) ==== + import "test" \ No newline at end of file diff --git a/tests/baselines/reference/keepImportsInDts4.errors.txt b/tests/baselines/reference/keepImportsInDts4.errors.txt new file mode 100644 index 0000000000000..1dd45943f1f74 --- /dev/null +++ b/tests/baselines/reference/keepImportsInDts4.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/folder/test.ts (0 errors) ==== + export {}; +==== tests/cases/compiler/main.ts (0 errors) ==== + import "./folder/test" \ No newline at end of file diff --git a/tests/baselines/reference/keyofDoesntContainSymbols.errors.txt b/tests/baselines/reference/keyofDoesntContainSymbols.errors.txt index 42a2d373be64e..5ee1ec68105e6 100644 --- a/tests/baselines/reference/keyofDoesntContainSymbols.errors.txt +++ b/tests/baselines/reference/keyofDoesntContainSymbols.errors.txt @@ -1,8 +1,10 @@ +error TS5101: Flag 'keyofStringsOnly' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/keyofDoesntContainSymbols.ts(11,30): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. tests/cases/compiler/keyofDoesntContainSymbols.ts(14,23): error TS2345: Argument of type 'unique symbol' is not assignable to parameter of type '"str" | "num"'. tests/cases/compiler/keyofDoesntContainSymbols.ts(17,23): error TS2345: Argument of type '0' is not assignable to parameter of type '"str" | "num"'. +!!! error TS5101: Flag 'keyofStringsOnly' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/keyofDoesntContainSymbols.ts (3 errors) ==== const sym = Symbol(); const num = 0; diff --git a/tests/baselines/reference/lateBoundConstraintTypeChecksCorrectly.errors.txt b/tests/baselines/reference/lateBoundConstraintTypeChecksCorrectly.errors.txt new file mode 100644 index 0000000000000..3fc57fca51fa5 --- /dev/null +++ b/tests/baselines/reference/lateBoundConstraintTypeChecksCorrectly.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'keyofStringsOnly' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'keyofStringsOnly' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/lateBoundConstraintTypeChecksCorrectly.ts (0 errors) ==== + declare const fooProp: unique symbol; + declare const barProp: unique symbol; + + type BothProps = typeof fooProp | typeof barProp; + + export interface Foo { + [fooProp]: T; + [barProp]: string; + } + + function f>(x: T) { + const abc = x[fooProp]; // expected: 'T[typeof fooProp]' + + /** + * Expected: no error + */ + const def: T[typeof fooProp] = x[fooProp]; + const def2: T[typeof barProp] = x[barProp]; + } + \ No newline at end of file diff --git a/tests/baselines/reference/letDeclarations-useBeforeDefinition2.errors.txt b/tests/baselines/reference/letDeclarations-useBeforeDefinition2.errors.txt index 6c5bfd04bc687..4deb63d162ae5 100644 --- a/tests/baselines/reference/letDeclarations-useBeforeDefinition2.errors.txt +++ b/tests/baselines/reference/letDeclarations-useBeforeDefinition2.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/file1.ts(1,1): error TS2448: Block-scoped variable 'l' used before its declaration. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/file1.ts (1 errors) ==== l; ~ diff --git a/tests/baselines/reference/mappedTypeUnionConstraintInferences.errors.txt b/tests/baselines/reference/mappedTypeUnionConstraintInferences.errors.txt new file mode 100644 index 0000000000000..02f664eb9bdd9 --- /dev/null +++ b/tests/baselines/reference/mappedTypeUnionConstraintInferences.errors.txt @@ -0,0 +1,23 @@ +error TS5101: Flag 'keyofStringsOnly' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'keyofStringsOnly' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/mappedTypeUnionConstraintInferences.ts (0 errors) ==== + export declare type Omit = Pick>; + export declare type PartialProperties = Partial> & Omit; + export function doSomething_Actual(a: T) { + const x: { [P in keyof PartialProperties]: PartialProperties[P]; } = null as any; + return x; + } + export declare function doSomething_Expected(a: T): { [P in keyof PartialProperties]: PartialProperties[P]; }; + + export let a = doSomething_Actual({ prop: "test" }); + a = {} // should be fine, equivalent to below + + export let b = doSomething_Expected({ prop: "test" }); + b = {} // fine + \ No newline at end of file diff --git a/tests/baselines/reference/methodsReturningThis.errors.txt b/tests/baselines/reference/methodsReturningThis.errors.txt new file mode 100644 index 0000000000000..84a4f3a41a6b1 --- /dev/null +++ b/tests/baselines/reference/methodsReturningThis.errors.txt @@ -0,0 +1,24 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/salsa/input.js (0 errors) ==== + function Class() + { + } + + // error: 'Class' doesn't have property 'notPresent' + Class.prototype.containsError = function () { return this.notPresent; }; + + // lots of methods that return this, which caused out-of-memory in #9527 + Class.prototype.m1 = function (a, b, c, d, tx, ty) { return this; }; + Class.prototype.m2 = function (x, y) { return this; }; + Class.prototype.m3 = function (x, y) { return this; }; + Class.prototype.m4 = function (angle) { return this; }; + Class.prototype.m5 = function (matrix) { return this; }; + Class.prototype.m6 = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) { return this; }; + Class.prototype.m7 = function(matrix) { return this; }; + Class.prototype.m8 = function() { return this; }; + Class.prototype.m9 = function () { return this; }; + + \ No newline at end of file diff --git a/tests/baselines/reference/methodsReturningThis.types b/tests/baselines/reference/methodsReturningThis.types index 544139497e088..856ea6925330f 100644 --- a/tests/baselines/reference/methodsReturningThis.types +++ b/tests/baselines/reference/methodsReturningThis.types @@ -13,7 +13,7 @@ Class.prototype.containsError = function () { return this.notPresent; }; >prototype : any >containsError : any >function () { return this.notPresent; } : () => any ->this.notPresent : error +>this.notPresent : any >this : this >notPresent : any diff --git a/tests/baselines/reference/moduleAugmentationsBundledOutput1.errors.txt b/tests/baselines/reference/moduleAugmentationsBundledOutput1.errors.txt new file mode 100644 index 0000000000000..0a250213af8e0 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsBundledOutput1.errors.txt @@ -0,0 +1,57 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/m1.ts (0 errors) ==== + export class Cls { + } + +==== tests/cases/compiler/m2.ts (0 errors) ==== + import {Cls} from "./m1"; + (Cls.prototype).foo = function() { return 1; }; + (Cls.prototype).bar = function() { return "1"; }; + + declare module "./m1" { + interface Cls { + foo(): number; + } + } + + declare module "./m1" { + interface Cls { + bar(): string; + } + } + +==== tests/cases/compiler/m3.ts (0 errors) ==== + export class C1 { x: number } + export class C2 { x: string } + +==== tests/cases/compiler/m4.ts (0 errors) ==== + import {Cls} from "./m1"; + import {C1, C2} from "./m3"; + (Cls.prototype).baz1 = function() { return undefined }; + (Cls.prototype).baz2 = function() { return undefined }; + + declare module "./m1" { + interface Cls { + baz1(): C1; + } + } + + declare module "./m1" { + interface Cls { + baz2(): C2; + } + } + +==== tests/cases/compiler/test.ts (0 errors) ==== + import { Cls } from "./m1"; + import "m2"; + import "m4"; + let c: Cls; + c.foo().toExponential(); + c.bar().toLowerCase(); + c.baz1().x.toExponential(); + c.baz2().x.toLowerCase(); + \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationsImports1.errors.txt b/tests/baselines/reference/moduleAugmentationsImports1.errors.txt new file mode 100644 index 0000000000000..679ae789cb0aa --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsImports1.errors.txt @@ -0,0 +1,44 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.ts (0 errors) ==== + export class A {} + +==== tests/cases/compiler/b.ts (0 errors) ==== + export class B {x: number;} + +==== tests/cases/compiler/c.d.ts (0 errors) ==== + declare module "C" { + class Cls {y: string; } + } + +==== tests/cases/compiler/d.ts (0 errors) ==== + /// + + import {A} from "./a"; + import {B} from "./b"; + import {Cls} from "C"; + + A.prototype.getB = function () { return undefined; } + A.prototype.getCls = function () { return undefined; } + + declare module "./a" { + interface A { + getB(): B; + } + } + + declare module "./a" { + interface A { + getCls(): Cls; + } + } + +==== tests/cases/compiler/main.ts (0 errors) ==== + import {A} from "./a"; + import "d"; + + let a: A; + let b = a.getB().x.toFixed(); + let c = a.getCls().y.toLowerCase(); \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationsImports2.errors.txt b/tests/baselines/reference/moduleAugmentationsImports2.errors.txt new file mode 100644 index 0000000000000..826e242cfd041 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsImports2.errors.txt @@ -0,0 +1,49 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.ts (0 errors) ==== + export class A {} + +==== tests/cases/compiler/b.ts (0 errors) ==== + export class B {x: number;} + +==== tests/cases/compiler/c.d.ts (0 errors) ==== + declare module "C" { + class Cls {y: string; } + } + +==== tests/cases/compiler/d.ts (0 errors) ==== + /// + + import {A} from "./a"; + import {B} from "./b"; + + A.prototype.getB = function () { return undefined; } + + declare module "./a" { + interface A { + getB(): B; + } + } + +==== tests/cases/compiler/e.ts (0 errors) ==== + import {A} from "./a"; + import {Cls} from "C"; + + A.prototype.getCls = function () { return undefined; } + + declare module "./a" { + interface A { + getCls(): Cls; + } + } + +==== tests/cases/compiler/main.ts (0 errors) ==== + import {A} from "./a"; + import "d"; + import "e"; + + let a: A; + let b = a.getB().x.toFixed(); + let c = a.getCls().y.toLowerCase(); \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationsImports3.errors.txt b/tests/baselines/reference/moduleAugmentationsImports3.errors.txt new file mode 100644 index 0000000000000..3f7a5bc989d1d --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsImports3.errors.txt @@ -0,0 +1,48 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/main.ts (0 errors) ==== + /// + import {A} from "./a"; + import "D"; + import "e"; + + let a: A; + let b = a.getB().x.toFixed(); + let c = a.getCls().y.toLowerCase(); +==== tests/cases/compiler/a.ts (0 errors) ==== + export class A {} + +==== tests/cases/compiler/b.ts (0 errors) ==== + export class B {x: number;} + +==== tests/cases/compiler/c.d.ts (0 errors) ==== + declare module "C" { + class Cls {y: string; } + } + +==== tests/cases/compiler/d.d.ts (0 errors) ==== + declare module "D" { + import {A} from "a"; + import {B} from "b"; + module "a" { + interface A { + getB(): B; + } + } + } + +==== tests/cases/compiler/e.ts (0 errors) ==== + /// + import {A} from "./a"; + import {Cls} from "C"; + + A.prototype.getCls = function () { return undefined; } + + declare module "./a" { + interface A { + getCls(): Cls; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationsImports4.errors.txt b/tests/baselines/reference/moduleAugmentationsImports4.errors.txt new file mode 100644 index 0000000000000..39b68021f8925 --- /dev/null +++ b/tests/baselines/reference/moduleAugmentationsImports4.errors.txt @@ -0,0 +1,49 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/main.ts (0 errors) ==== + /// + /// + import {A} from "./a"; + import "D"; + import "E"; + + let a: A; + let b = a.getB().x.toFixed(); + let c = a.getCls().y.toLowerCase(); +==== tests/cases/compiler/a.ts (0 errors) ==== + export class A {} + +==== tests/cases/compiler/b.ts (0 errors) ==== + export class B {x: number;} + +==== tests/cases/compiler/c.d.ts (0 errors) ==== + declare module "C" { + class Cls {y: string; } + } + +==== tests/cases/compiler/d.d.ts (0 errors) ==== + declare module "D" { + import {A} from "a"; + import {B} from "b"; + module "a" { + interface A { + getB(): B; + } + } + } + +==== tests/cases/compiler/e.d.ts (0 errors) ==== + /// + declare module "E" { + import {A} from "a"; + import {Cls} from "C"; + + module "a" { + interface A { + getCls(): Cls; + } + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/multipleDeclarations.errors.txt b/tests/baselines/reference/multipleDeclarations.errors.txt new file mode 100644 index 0000000000000..7666f16db72b0 --- /dev/null +++ b/tests/baselines/reference/multipleDeclarations.errors.txt @@ -0,0 +1,40 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/salsa/input.js (0 errors) ==== + function C() { + this.m = null; + } + C.prototype.m = function() { + this.nothing(); + } + class X { + constructor() { + this.m = this.m.bind(this); + this.mistake = 'frankly, complete nonsense'; + } + m() { + } + mistake() { + } + } + let x = new X(); + X.prototype.mistake = false; + x.m(); + x.mistake; + class Y { + mistake() { + } + m() { + } + constructor() { + this.m = this.m.bind(this); + this.mistake = 'even more nonsense'; + } + } + Y.prototype.mistake = true; + let y = new Y(); + y.m(); + y.mistake(); + \ No newline at end of file diff --git a/tests/baselines/reference/multipleDeclarations.types b/tests/baselines/reference/multipleDeclarations.types index 12aa74ecaf096..dc695bca44552 100644 --- a/tests/baselines/reference/multipleDeclarations.types +++ b/tests/baselines/reference/multipleDeclarations.types @@ -19,8 +19,8 @@ C.prototype.m = function() { >function() { this.nothing();} : () => void this.nothing(); ->this.nothing() : error ->this.nothing : error +>this.nothing() : any +>this.nothing : any >this : this >nothing : any } diff --git a/tests/baselines/reference/noImplicitAnyIndexingSuppressed.errors.txt b/tests/baselines/reference/noImplicitAnyIndexingSuppressed.errors.txt index e6e668fa0915f..32e0a33fe7bed 100644 --- a/tests/baselines/reference/noImplicitAnyIndexingSuppressed.errors.txt +++ b/tests/baselines/reference/noImplicitAnyIndexingSuppressed.errors.txt @@ -1,7 +1,9 @@ +error TS5101: Flag 'suppressImplicitAnyIndexErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/noImplicitAnyIndexingSuppressed.ts(19,9): error TS2339: Property 'hi' does not exist on type '{}'. tests/cases/compiler/noImplicitAnyIndexingSuppressed.ts(22,9): error TS2339: Property '10' does not exist on type '{}'. +!!! error TS5101: Flag 'suppressImplicitAnyIndexErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/noImplicitAnyIndexingSuppressed.ts (2 errors) ==== enum MyEmusEnum { emu diff --git a/tests/baselines/reference/noImplicitUseStrict_amd.errors.txt b/tests/baselines/reference/noImplicitUseStrict_amd.errors.txt new file mode 100644 index 0000000000000..78cbe410e3c8b --- /dev/null +++ b/tests/baselines/reference/noImplicitUseStrict_amd.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/noImplicitUseStrict_amd.ts (0 errors) ==== + export var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/noImplicitUseStrict_commonjs.errors.txt b/tests/baselines/reference/noImplicitUseStrict_commonjs.errors.txt new file mode 100644 index 0000000000000..0487d2c0761cf --- /dev/null +++ b/tests/baselines/reference/noImplicitUseStrict_commonjs.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/noImplicitUseStrict_commonjs.ts (0 errors) ==== + export var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/noImplicitUseStrict_es6.errors.txt b/tests/baselines/reference/noImplicitUseStrict_es6.errors.txt new file mode 100644 index 0000000000000..b3a68ce2fcb86 --- /dev/null +++ b/tests/baselines/reference/noImplicitUseStrict_es6.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/noImplicitUseStrict_es6.ts (0 errors) ==== + export var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/noImplicitUseStrict_system.errors.txt b/tests/baselines/reference/noImplicitUseStrict_system.errors.txt new file mode 100644 index 0000000000000..5ae4ce26e630d --- /dev/null +++ b/tests/baselines/reference/noImplicitUseStrict_system.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/noImplicitUseStrict_system.ts (0 errors) ==== + export var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/noImplicitUseStrict_umd.errors.txt b/tests/baselines/reference/noImplicitUseStrict_umd.errors.txt new file mode 100644 index 0000000000000..6d9f0deb426c6 --- /dev/null +++ b/tests/baselines/reference/noImplicitUseStrict_umd.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/noImplicitUseStrict_umd.ts (0 errors) ==== + export var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/noStrictGenericChecks.errors.txt b/tests/baselines/reference/noStrictGenericChecks.errors.txt new file mode 100644 index 0000000000000..c60bd43ac34b4 --- /dev/null +++ b/tests/baselines/reference/noStrictGenericChecks.errors.txt @@ -0,0 +1,13 @@ +error TS5101: Flag 'noStrictGenericChecks' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'noStrictGenericChecks' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/noStrictGenericChecks.ts (0 errors) ==== + type A = (x: T, y: U) => [T, U]; + type B = (x: S, y: S) => [S, S]; + + function f(a: A, b: B) { + a = b; // Error disabled here + b = a; // Ok + } + \ No newline at end of file diff --git a/tests/baselines/reference/nonPrimitiveIndexingWithForInSupressError.errors.txt b/tests/baselines/reference/nonPrimitiveIndexingWithForInSupressError.errors.txt new file mode 100644 index 0000000000000..df9e45272ae61 --- /dev/null +++ b/tests/baselines/reference/nonPrimitiveIndexingWithForInSupressError.errors.txt @@ -0,0 +1,11 @@ +error TS5101: Flag 'suppressImplicitAnyIndexErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'suppressImplicitAnyIndexErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/types/nonPrimitive/nonPrimitiveIndexingWithForInSupressError.ts (0 errors) ==== + var a: object; + + for (var key in a) { + var value = a[key]; + } + \ No newline at end of file diff --git a/tests/baselines/reference/nonPrimitiveIndexingWithForInSupressError.types b/tests/baselines/reference/nonPrimitiveIndexingWithForInSupressError.types index 9c094010701ab..3fafa40b59615 100644 --- a/tests/baselines/reference/nonPrimitiveIndexingWithForInSupressError.types +++ b/tests/baselines/reference/nonPrimitiveIndexingWithForInSupressError.types @@ -7,8 +7,8 @@ for (var key in a) { >a : object var value = a[key]; ->value : error ->a[key] : error +>value : any +>a[key] : any >a : object >key : string } diff --git a/tests/baselines/reference/numericUnderscoredSeparator(target=es3).errors.txt b/tests/baselines/reference/numericUnderscoredSeparator(target=es3).errors.txt new file mode 100644 index 0000000000000..4f8a8bc52fc5c --- /dev/null +++ b/tests/baselines/reference/numericUnderscoredSeparator(target=es3).errors.txt @@ -0,0 +1,10 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/numericUnderscoredSeparator.ts (0 errors) ==== + 1_000_000_000_000 + 0b1010_0001_1000_0101 + 0b1010_0001_1000_0101 + 0xA0_B0_C0 + \ No newline at end of file diff --git a/tests/baselines/reference/objectLiteralErrorsES3.errors.txt b/tests/baselines/reference/objectLiteralErrorsES3.errors.txt index 99b4f5c4ae01d..3e90065ab4582 100644 --- a/tests/baselines/reference/objectLiteralErrorsES3.errors.txt +++ b/tests/baselines/reference/objectLiteralErrorsES3.errors.txt @@ -1,9 +1,11 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/expressions/objectLiterals/objectLiteralErrorsES3.ts(1,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. tests/cases/conformance/expressions/objectLiterals/objectLiteralErrorsES3.ts(2,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. tests/cases/conformance/expressions/objectLiterals/objectLiteralErrorsES3.ts(3,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. tests/cases/conformance/expressions/objectLiterals/objectLiteralErrorsES3.ts(3,40): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/expressions/objectLiterals/objectLiteralErrorsES3.ts (4 errors) ==== var e1 = { get a() { return 4; } }; ~ diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.errors.txt b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.errors.txt new file mode 100644 index 0000000000000..520c1872bead6 --- /dev/null +++ b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.errors.txt @@ -0,0 +1,131 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/types/members/objectTypeWithStringNamedNumericProperty.ts (0 errors) ==== + // string named numeric properties are legal and distinct when indexed by string values + // indexed numerically the value is converted to a number + // no errors expected below + + class C { + "0.1": void; + ".1": Object; + "1": number; + "1.": string; + "1..": boolean; + "1.0": Date; + "-1.0": RegExp; + "-1": Date; + } + + var c: C; + var r1 = c['0.1']; + var r2 = c['.1']; + var r3 = c['1']; + var r3 = c[1]; + var r4 = c['1.']; + var r3 = c[1.]; // same as indexing by 1 when done numerically + var r5 = c['1..']; + var r6 = c['1.0']; + var r3 = c[1.0]; // same as indexing by 1 when done numerically + // BUG 823822 + var r7 = i[-1]; + var r7 = i[-1.0]; + var r8 = i["-1.0"]; + var r9 = i["-1"]; + var r10 = i[0x1] + var r11 = i[-0x1] + var r12 = i[01] + var r13 = i[-01] + + interface I { + "0.1": void; + ".1": Object; + "1": number; + "1.": string; + "1..": boolean; + "1.0": Date; + "-1.0": RegExp; + "-1": Date; + } + + var i: I; + var r1 = i['0.1']; + var r2 = i['.1']; + var r3 = i['1']; + var r3 = c[1]; + var r4 = i['1.']; + var r3 = c[1.]; // same as indexing by 1 when done numerically + var r5 = i['1..']; + var r6 = i['1.0']; + var r3 = c[1.0]; // same as indexing by 1 when done numerically + // BUG 823822 + var r7 = i[-1]; + var r7 = i[-1.0]; + var r8 = i["-1.0"]; + var r9 = i["-1"]; + var r10 = i[0x1] + var r11 = i[-0x1] + var r12 = i[01] + var r13 = i[-01] + + var a: { + "0.1": void; + ".1": Object; + "1": number; + "1.": string; + "1..": boolean; + "1.0": Date; + "-1.0": RegExp; + "-1": Date; + } + + var r1 = a['0.1']; + var r2 = a['.1']; + var r3 = a['1']; + var r3 = c[1]; + var r4 = a['1.']; + var r3 = c[1.]; // same as indexing by 1 when done numerically + var r5 = a['1..']; + var r6 = a['1.0']; + var r3 = c[1.0]; // same as indexing by 1 when done numerically + // BUG 823822 + var r7 = i[-1]; + var r7 = i[-1.0]; + var r8 = i["-1.0"]; + var r9 = i["-1"]; + var r10 = i[0x1] + var r11 = i[-0x1] + var r12 = i[01] + var r13 = i[-01] + + var b = { + "0.1": null, + ".1": new Object(), + "1": 1, + "1.": "", + "1..": true, + "1.0": new Date(), + "-1.0": /123/, + "-1": Date + }; + + var r1 = b['0.1']; + var r2 = b['.1']; + var r3 = b['1']; + var r3 = c[1]; + var r4 = b['1.']; + var r3 = c[1.]; // same as indexing by 1 when done numerically + var r5 = b['1..']; + var r6 = b['1.0']; + var r3 = c[1.0]; // same as indexing by 1 when done numerically + // BUG 823822 + var r7 = i[-1]; + var r7 = i[-1.0]; + var r8 = i["-1.0"]; + var r9 = i["-1"]; + var r10 = i[0x1] + var r11 = i[-0x1] + var r12 = i[01] + var r13 = i[-01] + \ No newline at end of file diff --git a/tests/baselines/reference/optionsOutAndNoModuleGen.errors.txt b/tests/baselines/reference/optionsOutAndNoModuleGen.errors.txt index f68665e0d7d5b..01079c4dc310b 100644 --- a/tests/baselines/reference/optionsOutAndNoModuleGen.errors.txt +++ b/tests/baselines/reference/optionsOutAndNoModuleGen.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/compiler/optionsOutAndNoModuleGen.ts(1,1): error TS6131: Cannot compile modules using option 'out' unless the '--module' flag is 'amd' or 'system'. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/compiler/optionsOutAndNoModuleGen.ts (1 errors) ==== export var x = 10; ~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/out-flag3.errors.txt b/tests/baselines/reference/out-flag3.errors.txt index 580fb552c43fc..6501c2c39de6c 100644 --- a/tests/baselines/reference/out-flag3.errors.txt +++ b/tests/baselines/reference/out-flag3.errors.txt @@ -1,8 +1,10 @@ error TS5053: Option 'out' cannot be specified with option 'outFile'. +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. !!! error TS5053: Option 'out' cannot be specified with option 'outFile'. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== tests/cases/compiler/a.ts (0 errors) ==== // --out and --outFile error diff --git a/tests/baselines/reference/parserArrowFunctionExpression10(target=es3).errors.txt b/tests/baselines/reference/parserArrowFunctionExpression10(target=es3).errors.txt index 2ce01c971ae6d..9d78abfdbe468 100644 --- a/tests/baselines/reference/parserArrowFunctionExpression10(target=es3).errors.txt +++ b/tests/baselines/reference/parserArrowFunctionExpression10(target=es3).errors.txt @@ -1,3 +1,4 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,1): error TS2304: Cannot find name 'a'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,11): error TS2304: Cannot find name 'c'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,11): error TS8010: Type annotations can only be used in TypeScript files. @@ -9,6 +10,7 @@ tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1, tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1,27): error TS2304: Cannot find name 'f'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js (5 errors) ==== a ? (b) : c => (d) : e => f // Not legal JS; "Unexpected token ':'" at last colon ~ diff --git a/tests/baselines/reference/parserArrowFunctionExpression11(target=es3).errors.txt b/tests/baselines/reference/parserArrowFunctionExpression11(target=es3).errors.txt index e5003f90bfcaf..2ad0e3e4d56c3 100644 --- a/tests/baselines/reference/parserArrowFunctionExpression11(target=es3).errors.txt +++ b/tests/baselines/reference/parserArrowFunctionExpression11(target=es3).errors.txt @@ -1,3 +1,4 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,1): error TS2304: Cannot find name 'a'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,5): error TS2304: Cannot find name 'b'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,9): error TS2304: Cannot find name 'c'. @@ -10,6 +11,7 @@ tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1, tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1,24): error TS2304: Cannot find name 'f'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js (5 errors) ==== a ? b ? c : (d) : e => f // Legal JS ~ diff --git a/tests/baselines/reference/parserArrowFunctionExpression12(target=es3).errors.txt b/tests/baselines/reference/parserArrowFunctionExpression12(target=es3).errors.txt index 98b8bcba5b07a..cf2762e09de59 100644 --- a/tests/baselines/reference/parserArrowFunctionExpression12(target=es3).errors.txt +++ b/tests/baselines/reference/parserArrowFunctionExpression12(target=es3).errors.txt @@ -1,3 +1,4 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,1): error TS2304: Cannot find name 'a'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,13): error TS2304: Cannot find name 'c'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,22): error TS2304: Cannot find name 'e'. @@ -6,6 +7,7 @@ tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1, tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1,22): error TS2304: Cannot find name 'e'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js (3 errors) ==== a ? (b) => (c): d => e // Legal JS ~ diff --git a/tests/baselines/reference/parserArrowFunctionExpression13(target=es3).errors.txt b/tests/baselines/reference/parserArrowFunctionExpression13(target=es3).errors.txt index eef5315fcad33..f01598a10686f 100644 --- a/tests/baselines/reference/parserArrowFunctionExpression13(target=es3).errors.txt +++ b/tests/baselines/reference/parserArrowFunctionExpression13(target=es3).errors.txt @@ -1,3 +1,4 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,1): error TS2304: Cannot find name 'a'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,11): error TS2304: Cannot find name 'a'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,21): error TS8010: Type annotations can only be used in TypeScript files. @@ -5,6 +6,7 @@ tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1, tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1,11): error TS2304: Cannot find name 'a'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js (3 errors) ==== a ? () => a() : (): any => null; // Not legal JS; "Unexpected token ')'" at last paren ~ diff --git a/tests/baselines/reference/parserArrowFunctionExpression14(target=es3).errors.txt b/tests/baselines/reference/parserArrowFunctionExpression14(target=es3).errors.txt index e8c3a1977ae25..8cf6d6feeb4db 100644 --- a/tests/baselines/reference/parserArrowFunctionExpression14(target=es3).errors.txt +++ b/tests/baselines/reference/parserArrowFunctionExpression14(target=es3).errors.txt @@ -1,3 +1,4 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,1): error TS2304: Cannot find name 'a'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,11): error TS8010: Type annotations can only be used in TypeScript files. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,20): error TS8009: The '?' modifier can only be used in TypeScript files. @@ -10,6 +11,7 @@ tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1, tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1,46): error TS2304: Cannot find name 'e'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js (7 errors) ==== a() ? (b: number, c?: string): void => d() : e; // Not legal JS; "Unexpected token ':'" at first colon ~ diff --git a/tests/baselines/reference/parserArrowFunctionExpression15(target=es3).errors.txt b/tests/baselines/reference/parserArrowFunctionExpression15(target=es3).errors.txt index 88b97c49a7489..4ec5a1f97734c 100644 --- a/tests/baselines/reference/parserArrowFunctionExpression15(target=es3).errors.txt +++ b/tests/baselines/reference/parserArrowFunctionExpression15(target=es3).errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,18): error TS8010: Type annotations can only be used in TypeScript files. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js (1 errors) ==== false ? (param): string => param : null // Not legal JS; "Unexpected token ':'" at last colon ~~~~~~ diff --git a/tests/baselines/reference/parserArrowFunctionExpression16(target=es3).errors.txt b/tests/baselines/reference/parserArrowFunctionExpression16(target=es3).errors.txt index fc050a9dfdeee..c5cfa7bcf91ed 100644 --- a/tests/baselines/reference/parserArrowFunctionExpression16(target=es3).errors.txt +++ b/tests/baselines/reference/parserArrowFunctionExpression16(target=es3).errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,25): error TS8010: Type annotations can only be used in TypeScript files. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js (1 errors) ==== true ? false ? (param): string => param : null : null // Not legal JS; "Unexpected token ':'" at last colon ~~~~~~ diff --git a/tests/baselines/reference/parserArrowFunctionExpression17(target=es3).errors.txt b/tests/baselines/reference/parserArrowFunctionExpression17(target=es3).errors.txt index 517edcbb84c44..45317b1094a16 100644 --- a/tests/baselines/reference/parserArrowFunctionExpression17(target=es3).errors.txt +++ b/tests/baselines/reference/parserArrowFunctionExpression17(target=es3).errors.txt @@ -1,3 +1,4 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,1): error TS2304: Cannot find name 'a'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,5): error TS2304: Cannot find name 'b'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,15): error TS2304: Cannot find name 'd'. @@ -9,6 +10,7 @@ tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1, tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1,20): error TS2304: Cannot find name 'e'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js (5 errors) ==== a ? b : (c) : d => e // Not legal JS; "Unexpected token ':'" at last colon ~ diff --git a/tests/baselines/reference/parserArrowFunctionExpression8(target=es3).errors.txt b/tests/baselines/reference/parserArrowFunctionExpression8(target=es3).errors.txt index 2cc3ac5680d16..16f62f3d7ad83 100644 --- a/tests/baselines/reference/parserArrowFunctionExpression8(target=es3).errors.txt +++ b/tests/baselines/reference/parserArrowFunctionExpression8(target=es3).errors.txt @@ -1,7 +1,9 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,1): error TS2304: Cannot find name 'x'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1,1): error TS2304: Cannot find name 'x'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js (1 errors) ==== x ? y => ({ y }) : z => ({ z }) // Legal JS ~ diff --git a/tests/baselines/reference/parserArrowFunctionExpression9(target=es3).errors.txt b/tests/baselines/reference/parserArrowFunctionExpression9(target=es3).errors.txt index 9c8657b5e6a17..3792b2912cd9d 100644 --- a/tests/baselines/reference/parserArrowFunctionExpression9(target=es3).errors.txt +++ b/tests/baselines/reference/parserArrowFunctionExpression9(target=es3).errors.txt @@ -1,3 +1,4 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,1): error TS2304: Cannot find name 'b'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,6): error TS2304: Cannot find name 'c'. tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js(1,16): error TS2304: Cannot find name 'e'. @@ -6,6 +7,7 @@ tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1, tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileTs.ts(1,16): error TS2304: Cannot find name 'e'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/fileJs.js (3 errors) ==== b ? (c) : d => e // Legal JS ~ diff --git a/tests/baselines/reference/privateNameES5Ban(target=es3).errors.txt b/tests/baselines/reference/privateNameES5Ban(target=es3).errors.txt index 7d7cc6e006dbe..b3c06c50a2428 100644 --- a/tests/baselines/reference/privateNameES5Ban(target=es3).errors.txt +++ b/tests/baselines/reference/privateNameES5Ban(target=es3).errors.txt @@ -1,3 +1,4 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts(3,5): error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher. tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts(4,5): error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher. tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts(5,12): error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher. @@ -8,6 +9,7 @@ tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts(9,16): tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts(10,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/classes/members/privateNames/privateNameES5Ban.ts (8 errors) ==== class A { constructor() {} diff --git a/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt b/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt index a152ace6f118c..59c19f13d8037 100644 --- a/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt +++ b/tests/baselines/reference/project/declarationDir3/amd/declarationDir3.errors.txt @@ -1,7 +1,9 @@ error TS5053: Option 'declarationDir' cannot be specified with option 'out'. +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS5053: Option 'declarationDir' cannot be specified with option 'out'. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== b.ts (0 errors) ==== export class B { diff --git a/tests/baselines/reference/project/declarationDir3/node/declarationDir3.errors.txt b/tests/baselines/reference/project/declarationDir3/node/declarationDir3.errors.txt index 19e15ce8fef05..e27aee7dcc458 100644 --- a/tests/baselines/reference/project/declarationDir3/node/declarationDir3.errors.txt +++ b/tests/baselines/reference/project/declarationDir3/node/declarationDir3.errors.txt @@ -1,8 +1,10 @@ error TS5053: Option 'declarationDir' cannot be specified with option 'out'. +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. !!! error TS5053: Option 'declarationDir' cannot be specified with option 'out'. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== b.ts (0 errors) ==== export class B { diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt new file mode 100644 index 0000000000000..53a5707ccd766 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/jsFileCompilationDifferentNamesNotSpecified.errors.txt @@ -0,0 +1,11 @@ +DifferentNamesNotSpecified/tsconfig.json(2,24): error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +==== DifferentNamesNotSpecified/tsconfig.json (1 errors) ==== + { + "compilerOptions": { "out": "test.js" } + ~~~~~ +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + } +==== DifferentNamesNotSpecified/a.ts (0 errors) ==== + var test = 10; \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/jsFileCompilationDifferentNamesNotSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/jsFileCompilationDifferentNamesNotSpecified.errors.txt index 29ab30d47ec49..eec78b9d442bd 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/jsFileCompilationDifferentNamesNotSpecified.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/jsFileCompilationDifferentNamesNotSpecified.errors.txt @@ -1,10 +1,13 @@ +DifferentNamesNotSpecified/tsconfig.json(2,24): error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. DifferentNamesNotSpecified/tsconfig.json(2,24): error TS6082: Only 'amd' and 'system' modules are supported alongside --out. -==== DifferentNamesNotSpecified/tsconfig.json (1 errors) ==== +==== DifferentNamesNotSpecified/tsconfig.json (2 errors) ==== { "compilerOptions": { "out": "test.js" } ~~~~~ +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + ~~~~~ !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. } ==== DifferentNamesNotSpecified/a.ts (0 errors) ==== diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt new file mode 100644 index 0000000000000..bc61105c8aba6 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt @@ -0,0 +1,16 @@ +DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json(3,5): error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +==== DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== + { + "compilerOptions": { + "out": "test.js", + ~~~~~ +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + "allowJs": true + } + } +==== DifferentNamesNotSpecifiedWithAllowJs/a.ts (0 errors) ==== + var test = 10; +==== DifferentNamesNotSpecifiedWithAllowJs/b.js (0 errors) ==== + var test2 = 10; // Should get compiled \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt index 5471371449aa1..51703b95a2fb2 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs.errors.txt @@ -1,11 +1,14 @@ +DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json(3,5): error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json(3,5): error TS6082: Only 'amd' and 'system' modules are supported alongside --out. -==== DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== +==== DifferentNamesNotSpecifiedWithAllowJs/tsconfig.json (2 errors) ==== { "compilerOptions": { "out": "test.js", ~~~~~ +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + ~~~~~ !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. "allowJs": true } diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt index 51cdc70cb7b8c..e2076afbd0402 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/jsFileCompilationDifferentNamesSpecified.errors.txt @@ -1,15 +1,18 @@ error TS6504: File 'DifferentNamesSpecified/b.js' is a JavaScript file. Did you mean to enable the 'allowJs' option? The file is in the program because: Part of 'files' list in tsconfig.json +DifferentNamesSpecified/tsconfig.json(2,24): error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6504: File 'DifferentNamesSpecified/b.js' is a JavaScript file. Did you mean to enable the 'allowJs' option? !!! error TS6504: The file is in the program because: !!! error TS6504: Part of 'files' list in tsconfig.json !!! related TS1410 DifferentNamesSpecified/tsconfig.json:3:22: File is matched by 'files' list specified here. -==== DifferentNamesSpecified/tsconfig.json (0 errors) ==== +==== DifferentNamesSpecified/tsconfig.json (1 errors) ==== { "compilerOptions": { "out": "test.js" }, + ~~~~~ +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. "files": [ "a.ts", "b.js" ] } ==== DifferentNamesSpecified/a.ts (0 errors) ==== diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/jsFileCompilationDifferentNamesSpecified.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/jsFileCompilationDifferentNamesSpecified.errors.txt index fda1830d912c6..ad5bd263257e3 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/jsFileCompilationDifferentNamesSpecified.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/jsFileCompilationDifferentNamesSpecified.errors.txt @@ -1,6 +1,7 @@ error TS6504: File 'DifferentNamesSpecified/b.js' is a JavaScript file. Did you mean to enable the 'allowJs' option? The file is in the program because: Part of 'files' list in tsconfig.json +DifferentNamesSpecified/tsconfig.json(2,24): error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. DifferentNamesSpecified/tsconfig.json(2,24): error TS6082: Only 'amd' and 'system' modules are supported alongside --out. @@ -8,10 +9,12 @@ DifferentNamesSpecified/tsconfig.json(2,24): error TS6082: Only 'amd' and 'syste !!! error TS6504: The file is in the program because: !!! error TS6504: Part of 'files' list in tsconfig.json !!! related TS1410 DifferentNamesSpecified/tsconfig.json:3:22: File is matched by 'files' list specified here. -==== DifferentNamesSpecified/tsconfig.json (1 errors) ==== +==== DifferentNamesSpecified/tsconfig.json (2 errors) ==== { "compilerOptions": { "out": "test.js" }, ~~~~~ +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + ~~~~~ !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. "files": [ "a.ts", "b.js" ] } diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt new file mode 100644 index 0000000000000..78f23f0902e71 --- /dev/null +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt @@ -0,0 +1,17 @@ +DifferentNamesSpecifiedWithAllowJs/tsconfig.json(3,5): error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +==== DifferentNamesSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== + { + "compilerOptions": { + "out": "test.js", + ~~~~~ +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + "allowJs": true + }, + "files": [ "a.ts", "b.js" ] + } +==== DifferentNamesSpecifiedWithAllowJs/a.ts (0 errors) ==== + var test = 10; +==== DifferentNamesSpecifiedWithAllowJs/b.js (0 errors) ==== + var test2 = 10; // Should get compiled \ No newline at end of file diff --git a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt index 3c80f199817ad..6005247890730 100644 --- a/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt +++ b/tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/jsFileCompilationDifferentNamesSpecifiedWithAllowJs.errors.txt @@ -1,11 +1,14 @@ +DifferentNamesSpecifiedWithAllowJs/tsconfig.json(3,5): error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. DifferentNamesSpecifiedWithAllowJs/tsconfig.json(3,5): error TS6082: Only 'amd' and 'system' modules are supported alongside --out. -==== DifferentNamesSpecifiedWithAllowJs/tsconfig.json (1 errors) ==== +==== DifferentNamesSpecifiedWithAllowJs/tsconfig.json (2 errors) ==== { "compilerOptions": { "out": "test.js", ~~~~~ +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + ~~~~~ !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. "allowJs": true }, diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..360f83988bd7b --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt index b0d02cf812052..bc6eedf78d77e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1a760fdb430f6 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/node/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/node/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt index 0dc033a09d2dc..728cbd7455c64 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/node/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/node/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1c4c4870ae973 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt index 7eb84ece29d1e..8d088f708f7c2 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f603d5d46d9a1 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt index f420dc4be3342..e900624fcf49e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..2ffb0075f2b04 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt index fa5c648451acb..d985e02fc66cd 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..63c0a93bb4eb1 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt index 6fdef1c0d9d45..7157e713b0ce2 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d529d91ac2423 --- /dev/null +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt index 2a58fd1ab36f3..fb682c7b67a05 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..360f83988bd7b --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt index b0d02cf812052..bc6eedf78d77e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/mapRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1a760fdb430f6 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/node/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/node/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt index 0dc033a09d2dc..728cbd7455c64 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/node/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/node/mapRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1c4c4870ae973 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/node/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/node/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt index 7eb84ece29d1e..8d088f708f7c2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/node/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/node/mapRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f603d5d46d9a1 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt index f420dc4be3342..e900624fcf49e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..2ffb0075f2b04 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt index fa5c648451acb..d985e02fc66cd 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..63c0a93bb4eb1 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt index 6fdef1c0d9d45..7157e713b0ce2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d529d91ac2423 --- /dev/null +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt index 2a58fd1ab36f3..fb682c7b67a05 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..360f83988bd7b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt index b0d02cf812052..bc6eedf78d77e 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1a760fdb430f6 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt index 0dc033a09d2dc..728cbd7455c64 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1c4c4870ae973 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt index 7eb84ece29d1e..8d088f708f7c2 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f603d5d46d9a1 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.errors.txt index f420dc4be3342..e900624fcf49e 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..2ffb0075f2b04 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.errors.txt index fa5c648451acb..d985e02fc66cd 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..63c0a93bb4eb1 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.errors.txt index 6fdef1c0d9d45..7157e713b0ce2 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d529d91ac2423 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.errors.txt index 2a58fd1ab36f3..fb682c7b67a05 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..360f83988bd7b --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt index b0d02cf812052..bc6eedf78d77e 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1a760fdb430f6 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt index 0dc033a09d2dc..728cbd7455c64 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1c4c4870ae973 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt index 7eb84ece29d1e..8d088f708f7c2 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f603d5d46d9a1 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt index f420dc4be3342..e900624fcf49e 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..2ffb0075f2b04 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt index fa5c648451acb..d985e02fc66cd 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..63c0a93bb4eb1 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt index 6fdef1c0d9d45..7157e713b0ce2 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d529d91ac2423 --- /dev/null +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt index 2a58fd1ab36f3..fb682c7b67a05 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/outMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/outMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/outMixedSubfolderSpecifyOutputFile.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/outMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/outMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/outMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..360f83988bd7b --- /dev/null +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/outModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/outModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/outModuleMultifolderSpecifyOutputFile.errors.txt index b0d02cf812052..bc6eedf78d77e 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/outModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/outModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1a760fdb430f6 --- /dev/null +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/outModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/node/outModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/node/outModuleSimpleSpecifyOutputFile.errors.txt index 0dc033a09d2dc..728cbd7455c64 100644 --- a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/node/outModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/node/outModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1c4c4870ae973 --- /dev/null +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/outModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/node/outModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/node/outModuleSubfolderSpecifyOutputFile.errors.txt index 7eb84ece29d1e..8d088f708f7c2 100644 --- a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/node/outModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/node/outModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f603d5d46d9a1 --- /dev/null +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/outMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/outMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/outMultifolderSpecifyOutputFile.errors.txt index f420dc4be3342..e900624fcf49e 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/outMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/outMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..2ffb0075f2b04 --- /dev/null +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/outSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/outSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/outSimpleSpecifyOutputFile.errors.txt index fa5c648451acb..d985e02fc66cd 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/outSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/outSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..63c0a93bb4eb1 --- /dev/null +++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/outSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/outSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/outSingleFileSpecifyOutputFile.errors.txt index 6fdef1c0d9d45..7157e713b0ce2 100644 --- a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/outSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/outSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d529d91ac2423 --- /dev/null +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/outSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/outSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/outSubfolderSpecifyOutputFile.errors.txt index 2a58fd1ab36f3..fb682c7b67a05 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/outSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/outSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt b/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt new file mode 100644 index 0000000000000..26d620f45512d --- /dev/null +++ b/tests/baselines/reference/project/prologueEmit/amd/prologueEmit.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== globalThisCapture.ts (0 errors) ==== + // Add a lambda to ensure global 'this' capture is triggered + (()=>this.window); + +==== __extends.ts (0 errors) ==== + // class inheritance to ensure __extends is emitted + module m { + export class base {} + export class child extends base {} + } \ No newline at end of file diff --git a/tests/baselines/reference/project/prologueEmit/node/prologueEmit.errors.txt b/tests/baselines/reference/project/prologueEmit/node/prologueEmit.errors.txt index 8ce21315a955f..ed8f23d8261ff 100644 --- a/tests/baselines/reference/project/prologueEmit/node/prologueEmit.errors.txt +++ b/tests/baselines/reference/project/prologueEmit/node/prologueEmit.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== globalThisCapture.ts (0 errors) ==== // Add a lambda to ensure global 'this' capture is triggered diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..360f83988bd7b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt index b0d02cf812052..bc6eedf78d77e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1a760fdb430f6 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt index 0dc033a09d2dc..728cbd7455c64 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1c4c4870ae973 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt index 7eb84ece29d1e..8d088f708f7c2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f603d5d46d9a1 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt index f420dc4be3342..e900624fcf49e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..2ffb0075f2b04 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt index fa5c648451acb..d985e02fc66cd 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..63c0a93bb4eb1 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt index 6fdef1c0d9d45..7157e713b0ce2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d529d91ac2423 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt index 2a58fd1ab36f3..fb682c7b67a05 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..360f83988bd7b --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt index b0d02cf812052..bc6eedf78d77e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1a760fdb430f6 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/node/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/node/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt index 0dc033a09d2dc..728cbd7455c64 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/node/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/node/sourceRootRelativePathModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1c4c4870ae973 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/node/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/node/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt index 7eb84ece29d1e..8d088f708f7c2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/node/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/node/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f603d5d46d9a1 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt index f420dc4be3342..e900624fcf49e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..2ffb0075f2b04 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt index fa5c648451acb..d985e02fc66cd 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..63c0a93bb4eb1 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt index 6fdef1c0d9d45..7157e713b0ce2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d529d91ac2423 --- /dev/null +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt index 2a58fd1ab36f3..fb682c7b67a05 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..360f83988bd7b --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt index b0d02cf812052..bc6eedf78d77e 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/sourcemapModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1a760fdb430f6 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/node/sourcemapModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/node/sourcemapModuleSimpleSpecifyOutputFile.errors.txt index 0dc033a09d2dc..728cbd7455c64 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/node/sourcemapModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/node/sourcemapModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1c4c4870ae973 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/node/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/node/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt index 7eb84ece29d1e..8d088f708f7c2 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/node/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/node/sourcemapModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f603d5d46d9a1 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.errors.txt index f420dc4be3342..e900624fcf49e 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..2ffb0075f2b04 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.errors.txt index fa5c648451acb..d985e02fc66cd 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..63c0a93bb4eb1 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.errors.txt index 6fdef1c0d9d45..7157e713b0ce2 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d529d91ac2423 --- /dev/null +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.errors.txt index 2a58fd1ab36f3..fb682c7b67a05 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt new file mode 100644 index 0000000000000..b309bb4504390 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ref/m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt index 2c420704766b0..865de19a631ff 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..360f83988bd7b --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,39 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== m2.ts (0 errors) ==== + export var m2_a1 = 10; + export class m2_c1 { + public m2_c1_p1: number; + } + + export var m2_instance1 = new m2_c1(); + export function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + import m2 = require("../outputdir_module_multifolder_ref/m2"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; + export var a3 = m2.m2_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt index b0d02cf812052..bc6eedf78d77e 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/sourcerootUrlModuleMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1a760fdb430f6 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/node/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/node/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt index 0dc033a09d2dc..728cbd7455c64 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/node/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/node/sourcerootUrlModuleSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..1c4c4870ae973 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,27 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + export var m1_a1 = 10; + export class m1_c1 { + public m1_c1_p1: number; + } + + export var m1_instance1 = new m1_c1(); + export function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + import m1 = require("ref/m1"); + export var a1 = 10; + export class c1 { + public p1: number; + } + + export var instance1 = new c1(); + export function f1() { + return instance1; + } + + export var a2 = m1.m1_c1; \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/node/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/node/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt index 7eb84ece29d1e..8d088f708f7c2 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/node/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/node/sourcerootUrlModuleSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== export var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..f603d5d46d9a1 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt @@ -0,0 +1,36 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== ../outputdir_multifolder_ref/m2.ts (0 errors) ==== + var m2_a1 = 10; + class m2_c1 { + public m2_c1_p1: number; + } + + var m2_instance1 = new m2_c1(); + function m2_f1() { + return m2_instance1; + } +==== test.ts (0 errors) ==== + /// + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt index f420dc4be3342..e900624fcf49e 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..2ffb0075f2b04 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.errors.txt index fa5c648451acb..d985e02fc66cd 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..63c0a93bb4eb1 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt @@ -0,0 +1,14 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== test.ts (0 errors) ==== + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt index 6fdef1c0d9d45..7157e713b0ce2 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== test.ts (0 errors) ==== var a1 = 10; diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt new file mode 100644 index 0000000000000..d529d91ac2423 --- /dev/null +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt @@ -0,0 +1,25 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ref/m1.ts (0 errors) ==== + var m1_a1 = 10; + class m1_c1 { + public m1_c1_p1: number; + } + + var m1_instance1 = new m1_c1(); + function m1_f1() { + return m1_instance1; + } +==== test.ts (0 errors) ==== + /// + var a1 = 10; + class c1 { + public p1: number; + } + + var instance1 = new c1(); + function f1() { + return instance1; + } \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt index 2a58fd1ab36f3..fb682c7b67a05 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6082: Only 'amd' and 'system' modules are supported alongside --out. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6082: Only 'amd' and 'system' modules are supported alongside --out. ==== ref/m1.ts (0 errors) ==== var m1_a1 = 10; diff --git a/tests/baselines/reference/propertyAccessNumericLiterals.errors.txt b/tests/baselines/reference/propertyAccessNumericLiterals.errors.txt new file mode 100644 index 0000000000000..b7e57f2bbd15a --- /dev/null +++ b/tests/baselines/reference/propertyAccessNumericLiterals.errors.txt @@ -0,0 +1,11 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/expressions/propertyAccess/propertyAccessNumericLiterals.ts (0 errors) ==== + 0xffffffff.toString(); + 0o01234.toString(); + 0b01101101.toString(); + 1234..toString(); + 1e0.toString(); + 000.toString(); \ No newline at end of file diff --git a/tests/baselines/reference/signaturesUseJSDocForOptionalParameters.errors.txt b/tests/baselines/reference/signaturesUseJSDocForOptionalParameters.errors.txt new file mode 100644 index 0000000000000..4a6ec8c328d59 --- /dev/null +++ b/tests/baselines/reference/signaturesUseJSDocForOptionalParameters.errors.txt @@ -0,0 +1,20 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/jsDocOptionality.js (0 errors) ==== + function MyClass() { + this.prop = null; + } + /** + * @param {string} required + * @param {string} [notRequired] + * @returns {MyClass} + */ + MyClass.prototype.optionalParam = function(required, notRequired) { + return this; + }; + let pInst = new MyClass(); + let c1 = pInst.optionalParam('hello') + let c2 = pInst.optionalParam('hello', null) + \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-Comment1.errors.txt b/tests/baselines/reference/sourceMap-Comment1.errors.txt new file mode 100644 index 0000000000000..35bc79376b1bb --- /dev/null +++ b/tests/baselines/reference/sourceMap-Comment1.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/sourceMap-Comment1.ts (0 errors) ==== + // Comment \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-EmptyFile1.errors.txt b/tests/baselines/reference/sourceMap-EmptyFile1.errors.txt new file mode 100644 index 0000000000000..7a6db8f5e8a9e --- /dev/null +++ b/tests/baselines/reference/sourceMap-EmptyFile1.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/sourceMap-EmptyFile1.ts (0 errors) ==== + \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.errors.txt b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.errors.txt new file mode 100644 index 0000000000000..fe6c041b3d64b --- /dev/null +++ b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.errors.txt @@ -0,0 +1,7 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/sourceMap-InterfacePrecedingVariableDeclaration1.ts (0 errors) ==== + interface I {} + var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-LineBreaks.errors.txt b/tests/baselines/reference/sourceMap-LineBreaks.errors.txt new file mode 100644 index 0000000000000..6a1456c2ef8b4 --- /dev/null +++ b/tests/baselines/reference/sourceMap-LineBreaks.errors.txt @@ -0,0 +1,17 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/sourceMap-LineBreaks.ts (0 errors) ==== + var endsWithlineSeparator = 10; 
var endsWithParagraphSeparator = 10; 
var endsWithNextLine = 1;…var endsWithLineFeed = 1; + var endsWithCarriageReturnLineFeed = 1; + var endsWithCarriageReturn = 1; var endsWithLineFeedCarriageReturn = 1; + var endsWithLineFeedCarriageReturnLineFeed = 1; + + var stringLiteralWithLineFeed = "line 1\ + line 2"; + var stringLiteralWithCarriageReturnLineFeed = "line 1\ + line 2"; + var stringLiteralWithCarriageReturn = "line 1\ line 2"; + + var stringLiteralWithLineSeparator = "line 1\
line 2";
var stringLiteralWithParagraphSeparator = "line 1\
line 2";
var stringLiteralWithNextLine = "line 1\…line 2"; \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-NewLine1.errors.txt b/tests/baselines/reference/sourceMap-NewLine1.errors.txt new file mode 100644 index 0000000000000..2929b2926eb24 --- /dev/null +++ b/tests/baselines/reference/sourceMap-NewLine1.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/sourceMap-NewLine1.ts (0 errors) ==== + \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-SemiColon1.errors.txt b/tests/baselines/reference/sourceMap-SemiColon1.errors.txt new file mode 100644 index 0000000000000..1210235bc8a53 --- /dev/null +++ b/tests/baselines/reference/sourceMap-SemiColon1.errors.txt @@ -0,0 +1,7 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/sourceMap-SemiColon1.ts (0 errors) ==== + ; + \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-SingleSpace1.errors.txt b/tests/baselines/reference/sourceMap-SingleSpace1.errors.txt new file mode 100644 index 0000000000000..3b26d8f683f95 --- /dev/null +++ b/tests/baselines/reference/sourceMap-SingleSpace1.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/sourceMap-SingleSpace1.ts (0 errors) ==== + \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.errors.txt b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.errors.txt new file mode 100644 index 0000000000000..1e3726675bbd9 --- /dev/null +++ b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.errors.txt @@ -0,0 +1,18 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/sourceMap-StringLiteralWithNewLine.ts (0 errors) ==== + interface Document { + } + interface Window { + document: Document; + } + declare var window: Window; + + module Foo { + var x = "test1"; + var y = "test 2\ + isn't this a lot of fun"; + var z = window.document; + } \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.errors.txt b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.errors.txt new file mode 100644 index 0000000000000..1a462525275d9 --- /dev/null +++ b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.errors.txt @@ -0,0 +1,13 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/testFiles/app.ts (0 errors) ==== + // Note in the out result we are using same folder name only different in casing + // Since this is case sensitive, the folders are different and hence the relative paths in sourcemap shouldn't be just app.ts or app2.ts + class c { + } + +==== tests/cases/compiler/testFiles/app2.ts (0 errors) ==== + class d { + } \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithMultipleFilesWithCopyright.errors.txt b/tests/baselines/reference/sourceMapWithMultipleFilesWithCopyright.errors.txt new file mode 100644 index 0000000000000..bfe81f1754508 --- /dev/null +++ b/tests/baselines/reference/sourceMapWithMultipleFilesWithCopyright.errors.txt @@ -0,0 +1,22 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/b.ts (0 errors) ==== + /*-------------------------------------------------------------------------- + Copyright + ---------------------------------------------------------------------------*/ + + /// + var y = x; + +==== tests/cases/compiler/a.ts (0 errors) ==== + /*-------------------------------------------------------------------------- + Copyright + ---------------------------------------------------------------------------*/ + + var x = { + a: 10, + b: 20 + }; + \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt b/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt new file mode 100644 index 0000000000000..b61a494d66005 --- /dev/null +++ b/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.errors.txt @@ -0,0 +1,20 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/a.ts (0 errors) ==== + module M { + export var X = 1; + } + interface Navigator { + getGamepads(func?: any): any; + webkitGetGamepads(func?: any): any + msGetGamepads(func?: any): any; + webkitGamepads(func?: any): any; + } + +==== tests/cases/compiler/b.ts (0 errors) ==== + module m1 { + export class c1 { + } + } \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.errors.txt b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.errors.txt new file mode 100644 index 0000000000000..e6369547e94ea --- /dev/null +++ b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.errors.txt @@ -0,0 +1,13 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/testFiles/app.ts (0 errors) ==== + // Note in the out result we are using same folder name only different in casing + // Since this is non case sensitive, the relative paths should be just app.ts and app2.ts in the sourcemap + class c { + } + +==== tests/cases/compiler/testFiles/app2.ts (0 errors) ==== + class d { + } \ No newline at end of file diff --git a/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction.errors.txt b/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction.errors.txt new file mode 100644 index 0000000000000..a6cc4ae11ca35 --- /dev/null +++ b/tests/baselines/reference/taggedTemplateStringsWithCurriedFunction.errors.txt @@ -0,0 +1,15 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/taggedTemplateStringsWithCurriedFunction.ts (0 errors) ==== + // Originated from #38558 + + const f = _ => (..._) => ""; + + f({ ...{ x: 0 } })``; + f({ ...{ x: 0 } })`x`; + f({ ...{ x: 0 } })`x${f}x`; + f({ ...{ x: 0 }, y: (() => 1)() })``; + f({ x: (() => 1)(), ...{ y: 1 } })``; + \ No newline at end of file diff --git a/tests/baselines/reference/topLevelThisAssignment.errors.txt b/tests/baselines/reference/topLevelThisAssignment.errors.txt new file mode 100644 index 0000000000000..81c63697592f6 --- /dev/null +++ b/tests/baselines/reference/topLevelThisAssignment.errors.txt @@ -0,0 +1,13 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/salsa/a.js (0 errors) ==== + this.a = 10; + this.a; + a; + +==== tests/cases/conformance/salsa/b.js (0 errors) ==== + this.a; + a; + \ No newline at end of file diff --git a/tests/baselines/reference/trailingCommasES3.errors.txt b/tests/baselines/reference/trailingCommasES3.errors.txt new file mode 100644 index 0000000000000..393baa49526d4 --- /dev/null +++ b/tests/baselines/reference/trailingCommasES3.errors.txt @@ -0,0 +1,16 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/compiler/trailingCommasES3.ts (0 errors) ==== + var o1 = { a: 1, b: 2 }; + var o2 = { a: 1, b: 2, }; + var o3 = { a: 1, }; + var o4 = {}; + + var a1 = [1, 2]; + var a2 = [1, 2, ]; + var a3 = [1, ]; + var a4 = []; + var a5 = [1, , ]; + var a6 = [, , ]; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Does not generate semantic diagnostics.errors.txt b/tests/baselines/reference/transpile/Does not generate semantic diagnostics.errors.txt new file mode 100644 index 0000000000000..1095ed285ac58 --- /dev/null +++ b/tests/baselines/reference/transpile/Does not generate semantic diagnostics.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + var x: string = 0; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Does not generate semantic diagnostics.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Does not generate semantic diagnostics.oldTranspile.errors.txt new file mode 100644 index 0000000000000..1095ed285ac58 --- /dev/null +++ b/tests/baselines/reference/transpile/Does not generate semantic diagnostics.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + var x: string = 0; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Elides import equals referenced only by export type.errors.txt b/tests/baselines/reference/transpile/Elides import equals referenced only by export type.errors.txt new file mode 100644 index 0000000000000..c5dea455a3102 --- /dev/null +++ b/tests/baselines/reference/transpile/Elides import equals referenced only by export type.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + import IFoo = Namespace.IFoo;export type { IFoo }; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Elides import equals referenced only by export type.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Elides import equals referenced only by export type.oldTranspile.errors.txt new file mode 100644 index 0000000000000..c5dea455a3102 --- /dev/null +++ b/tests/baselines/reference/transpile/Elides import equals referenced only by export type.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + import IFoo = Namespace.IFoo;export type { IFoo }; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Elides import equals referenced only by type only export specifier.errors.txt b/tests/baselines/reference/transpile/Elides import equals referenced only by type only export specifier.errors.txt new file mode 100644 index 0000000000000..026e0558fdf73 --- /dev/null +++ b/tests/baselines/reference/transpile/Elides import equals referenced only by type only export specifier.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + import IFoo = Namespace.IFoo;export { type IFoo }; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Elides import equals referenced only by type only export specifier.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Elides import equals referenced only by type only export specifier.oldTranspile.errors.txt new file mode 100644 index 0000000000000..026e0558fdf73 --- /dev/null +++ b/tests/baselines/reference/transpile/Elides import equals referenced only by type only export specifier.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + import IFoo = Namespace.IFoo;export { type IFoo }; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Export star as ns conflict does not crash.errors.txt b/tests/baselines/reference/transpile/Export star as ns conflict does not crash.errors.txt new file mode 100644 index 0000000000000..ecc485da7bfba --- /dev/null +++ b/tests/baselines/reference/transpile/Export star as ns conflict does not crash.errors.txt @@ -0,0 +1,9 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + + var a; + export { a as alias }; + export * as alias from './file'; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Export star as ns conflict does not crash.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Export star as ns conflict does not crash.oldTranspile.errors.txt new file mode 100644 index 0000000000000..ecc485da7bfba --- /dev/null +++ b/tests/baselines/reference/transpile/Export star as ns conflict does not crash.oldTranspile.errors.txt @@ -0,0 +1,9 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + + var a; + export { a as alias }; + export * as alias from './file'; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Generates expected syntactic diagnostics.errors.txt b/tests/baselines/reference/transpile/Generates expected syntactic diagnostics.errors.txt index c203977424625..056a9b7230b02 100644 --- a/tests/baselines/reference/transpile/Generates expected syntactic diagnostics.errors.txt +++ b/tests/baselines/reference/transpile/Generates expected syntactic diagnostics.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. file.ts(1,1): error TS1434: Unexpected keyword or identifier. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== file.ts (1 errors) ==== a b ~ diff --git a/tests/baselines/reference/transpile/Generates expected syntactic diagnostics.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Generates expected syntactic diagnostics.oldTranspile.errors.txt index c203977424625..056a9b7230b02 100644 --- a/tests/baselines/reference/transpile/Generates expected syntactic diagnostics.oldTranspile.errors.txt +++ b/tests/baselines/reference/transpile/Generates expected syntactic diagnostics.oldTranspile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. file.ts(1,1): error TS1434: Unexpected keyword or identifier. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== file.ts (1 errors) ==== a b ~ diff --git a/tests/baselines/reference/transpile/Generates module output.errors.txt b/tests/baselines/reference/transpile/Generates module output.errors.txt new file mode 100644 index 0000000000000..d1d6290d2c9f8 --- /dev/null +++ b/tests/baselines/reference/transpile/Generates module output.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Generates module output.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Generates module output.oldTranspile.errors.txt new file mode 100644 index 0000000000000..d1d6290d2c9f8 --- /dev/null +++ b/tests/baselines/reference/transpile/Generates module output.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Generates no diagnostics for missing file references.errors.txt b/tests/baselines/reference/transpile/Generates no diagnostics for missing file references.errors.txt new file mode 100644 index 0000000000000..9829f495ba99e --- /dev/null +++ b/tests/baselines/reference/transpile/Generates no diagnostics for missing file references.errors.txt @@ -0,0 +1,7 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + /// + var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Generates no diagnostics for missing file references.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Generates no diagnostics for missing file references.oldTranspile.errors.txt new file mode 100644 index 0000000000000..9829f495ba99e --- /dev/null +++ b/tests/baselines/reference/transpile/Generates no diagnostics for missing file references.oldTranspile.errors.txt @@ -0,0 +1,7 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + /// + var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Generates no diagnostics for missing module imports.errors.txt b/tests/baselines/reference/transpile/Generates no diagnostics for missing module imports.errors.txt new file mode 100644 index 0000000000000..5158cadd09c3d --- /dev/null +++ b/tests/baselines/reference/transpile/Generates no diagnostics for missing module imports.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + import {a} from "module2"; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Generates no diagnostics for missing module imports.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Generates no diagnostics for missing module imports.oldTranspile.errors.txt new file mode 100644 index 0000000000000..5158cadd09c3d --- /dev/null +++ b/tests/baselines/reference/transpile/Generates no diagnostics for missing module imports.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + import {a} from "module2"; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Generates no diagnostics with valid inputs.errors.txt b/tests/baselines/reference/transpile/Generates no diagnostics with valid inputs.errors.txt new file mode 100644 index 0000000000000..d1d6290d2c9f8 --- /dev/null +++ b/tests/baselines/reference/transpile/Generates no diagnostics with valid inputs.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Generates no diagnostics with valid inputs.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Generates no diagnostics with valid inputs.oldTranspile.errors.txt new file mode 100644 index 0000000000000..d1d6290d2c9f8 --- /dev/null +++ b/tests/baselines/reference/transpile/Generates no diagnostics with valid inputs.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Infer correct file extension.errors.txt b/tests/baselines/reference/transpile/Infer correct file extension.errors.txt new file mode 100644 index 0000000000000..99b79f79b4fcb --- /dev/null +++ b/tests/baselines/reference/transpile/Infer correct file extension.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + const fn = (a: T) => a \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Infer correct file extension.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Infer correct file extension.oldTranspile.errors.txt new file mode 100644 index 0000000000000..99b79f79b4fcb --- /dev/null +++ b/tests/baselines/reference/transpile/Infer correct file extension.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + const fn = (a: T) => a \ No newline at end of file diff --git a/tests/baselines/reference/transpile/No extra errors for file without extension.errors.txt b/tests/baselines/reference/transpile/No extra errors for file without extension.errors.txt new file mode 100644 index 0000000000000..56e38a22e2682 --- /dev/null +++ b/tests/baselines/reference/transpile/No extra errors for file without extension.errors.txt @@ -0,0 +1,7 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file (0 errors) ==== + "use strict"; + var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/No extra errors for file without extension.oldTranspile.errors.txt b/tests/baselines/reference/transpile/No extra errors for file without extension.oldTranspile.errors.txt new file mode 100644 index 0000000000000..56e38a22e2682 --- /dev/null +++ b/tests/baselines/reference/transpile/No extra errors for file without extension.oldTranspile.errors.txt @@ -0,0 +1,7 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file (0 errors) ==== + "use strict"; + var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Rename dependencies - AMD.errors.txt b/tests/baselines/reference/transpile/Rename dependencies - AMD.errors.txt new file mode 100644 index 0000000000000..e2dced67d0f45 --- /dev/null +++ b/tests/baselines/reference/transpile/Rename dependencies - AMD.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + import {foo} from "SomeName"; + declare function use(a: any); + use(foo); \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Rename dependencies - System.errors.txt b/tests/baselines/reference/transpile/Rename dependencies - System.errors.txt new file mode 100644 index 0000000000000..e2dced67d0f45 --- /dev/null +++ b/tests/baselines/reference/transpile/Rename dependencies - System.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + import {foo} from "SomeName"; + declare function use(a: any); + use(foo); \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Rename dependencies - UMD.errors.txt b/tests/baselines/reference/transpile/Rename dependencies - UMD.errors.txt new file mode 100644 index 0000000000000..e2dced67d0f45 --- /dev/null +++ b/tests/baselines/reference/transpile/Rename dependencies - UMD.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + import {foo} from "SomeName"; + declare function use(a: any); + use(foo); \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.errors.txt b/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.errors.txt index d00a14233de50..4ec756862adb2 100644 --- a/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.errors.txt +++ b/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. ==== file.ts (0 errors) ==== \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.oldTranspile.errors.txt index d00a14233de50..4ec756862adb2 100644 --- a/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.oldTranspile.errors.txt +++ b/tests/baselines/reference/transpile/Report an error when compiler-options module-kind is out-of-range.oldTranspile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. ==== file.ts (0 errors) ==== \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.errors.txt b/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.errors.txt index d00a14233de50..4ec756862adb2 100644 --- a/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.errors.txt +++ b/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. ==== file.ts (0 errors) ==== \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.oldTranspile.errors.txt index d00a14233de50..4ec756862adb2 100644 --- a/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.oldTranspile.errors.txt +++ b/tests/baselines/reference/transpile/Report an error when compiler-options target-script is out-of-range.oldTranspile.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. !!! error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node16', 'nodenext'. ==== file.ts (0 errors) ==== \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Sets module name.errors.txt b/tests/baselines/reference/transpile/Sets module name.errors.txt new file mode 100644 index 0000000000000..720435fbe6cc3 --- /dev/null +++ b/tests/baselines/reference/transpile/Sets module name.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + var x = 1; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Sets module name.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Sets module name.oldTranspile.errors.txt new file mode 100644 index 0000000000000..720435fbe6cc3 --- /dev/null +++ b/tests/baselines/reference/transpile/Sets module name.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + var x = 1; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Support options with lib values.errors.txt b/tests/baselines/reference/transpile/Support options with lib values.errors.txt new file mode 100644 index 0000000000000..9f04530407b80 --- /dev/null +++ b/tests/baselines/reference/transpile/Support options with lib values.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + const a = 10; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Support options with lib values.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Support options with lib values.oldTranspile.errors.txt new file mode 100644 index 0000000000000..9f04530407b80 --- /dev/null +++ b/tests/baselines/reference/transpile/Support options with lib values.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + const a = 10; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Support options with types values.errors.txt b/tests/baselines/reference/transpile/Support options with types values.errors.txt new file mode 100644 index 0000000000000..9f04530407b80 --- /dev/null +++ b/tests/baselines/reference/transpile/Support options with types values.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + const a = 10; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Support options with types values.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Support options with types values.oldTranspile.errors.txt new file mode 100644 index 0000000000000..9f04530407b80 --- /dev/null +++ b/tests/baselines/reference/transpile/Support options with types values.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + const a = 10; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports as const arrays.errors.txt b/tests/baselines/reference/transpile/Supports as const arrays.errors.txt new file mode 100644 index 0000000000000..6a2962fe79054 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports as const arrays.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + ([] as const).forEach(k => console.log(k)); \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports as const arrays.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports as const arrays.oldTranspile.errors.txt new file mode 100644 index 0000000000000..6a2962fe79054 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports as const arrays.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + ([] as const).forEach(k => console.log(k)); \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports backslashes in file name.errors.txt b/tests/baselines/reference/transpile/Supports backslashes in file name.errors.txt new file mode 100644 index 0000000000000..ca488ca035b73 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports backslashes in file name.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== a\b.ts (0 errors) ==== + var x \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports backslashes in file name.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports backslashes in file name.oldTranspile.errors.txt new file mode 100644 index 0000000000000..ca488ca035b73 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports backslashes in file name.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== a\b.ts (0 errors) ==== + var x \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports readonly keyword for arrays.errors.txt b/tests/baselines/reference/transpile/Supports readonly keyword for arrays.errors.txt new file mode 100644 index 0000000000000..75c03f925cb8c --- /dev/null +++ b/tests/baselines/reference/transpile/Supports readonly keyword for arrays.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + let x: readonly string[]; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports readonly keyword for arrays.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports readonly keyword for arrays.oldTranspile.errors.txt new file mode 100644 index 0000000000000..75c03f925cb8c --- /dev/null +++ b/tests/baselines/reference/transpile/Supports readonly keyword for arrays.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + let x: readonly string[]; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting allowJs.errors.txt b/tests/baselines/reference/transpile/Supports setting allowJs.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting allowJs.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting allowJs.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting allowJs.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting allowJs.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting allowSyntheticDefaultImports.errors.txt b/tests/baselines/reference/transpile/Supports setting allowSyntheticDefaultImports.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting allowSyntheticDefaultImports.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting allowSyntheticDefaultImports.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting allowSyntheticDefaultImports.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting allowSyntheticDefaultImports.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting allowUnreachableCode.errors.txt b/tests/baselines/reference/transpile/Supports setting allowUnreachableCode.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting allowUnreachableCode.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting allowUnreachableCode.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting allowUnreachableCode.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting allowUnreachableCode.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting allowUnusedLabels.errors.txt b/tests/baselines/reference/transpile/Supports setting allowUnusedLabels.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting allowUnusedLabels.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting allowUnusedLabels.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting allowUnusedLabels.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting allowUnusedLabels.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting alwaysStrict.errors.txt b/tests/baselines/reference/transpile/Supports setting alwaysStrict.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting alwaysStrict.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting alwaysStrict.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting alwaysStrict.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting alwaysStrict.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting baseUrl.errors.txt b/tests/baselines/reference/transpile/Supports setting baseUrl.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting baseUrl.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting baseUrl.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting baseUrl.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting baseUrl.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting charset.errors.txt b/tests/baselines/reference/transpile/Supports setting charset.errors.txt new file mode 100644 index 0000000000000..ba532b7c403ad --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting charset.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +error TS5101: Flag 'charset' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +!!! error TS5101: Flag 'charset' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting charset.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting charset.oldTranspile.errors.txt new file mode 100644 index 0000000000000..ba532b7c403ad --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting charset.oldTranspile.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +error TS5101: Flag 'charset' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +!!! error TS5101: Flag 'charset' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting composite.errors.txt b/tests/baselines/reference/transpile/Supports setting composite.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting composite.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting composite.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting composite.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting composite.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting declaration.errors.txt b/tests/baselines/reference/transpile/Supports setting declaration.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting declaration.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting declaration.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting declaration.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting declaration.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting declarationDir.errors.txt b/tests/baselines/reference/transpile/Supports setting declarationDir.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting declarationDir.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting declarationDir.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting declarationDir.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting declarationDir.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting emitBOM.errors.txt b/tests/baselines/reference/transpile/Supports setting emitBOM.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting emitBOM.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting emitBOM.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting emitBOM.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting emitBOM.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting emitDecoratorMetadata.errors.txt b/tests/baselines/reference/transpile/Supports setting emitDecoratorMetadata.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting emitDecoratorMetadata.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting emitDecoratorMetadata.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting emitDecoratorMetadata.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting emitDecoratorMetadata.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting experimentalDecorators.errors.txt b/tests/baselines/reference/transpile/Supports setting experimentalDecorators.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting experimentalDecorators.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting experimentalDecorators.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting experimentalDecorators.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting experimentalDecorators.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting forceConsistentCasingInFileNames.errors.txt b/tests/baselines/reference/transpile/Supports setting forceConsistentCasingInFileNames.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting forceConsistentCasingInFileNames.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting forceConsistentCasingInFileNames.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting forceConsistentCasingInFileNames.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting forceConsistentCasingInFileNames.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting incremental.errors.txt b/tests/baselines/reference/transpile/Supports setting incremental.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting incremental.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting incremental.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting incremental.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting incremental.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting isolatedModules.errors.txt b/tests/baselines/reference/transpile/Supports setting isolatedModules.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting isolatedModules.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting isolatedModules.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting isolatedModules.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting isolatedModules.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting jsx.errors.txt b/tests/baselines/reference/transpile/Supports setting jsx.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting jsx.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting jsx.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting jsx.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting jsx.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting jsxFactory.errors.txt b/tests/baselines/reference/transpile/Supports setting jsxFactory.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting jsxFactory.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting jsxFactory.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting jsxFactory.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting jsxFactory.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting jsxFragmentFactory.errors.txt b/tests/baselines/reference/transpile/Supports setting jsxFragmentFactory.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting jsxFragmentFactory.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting jsxFragmentFactory.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting jsxFragmentFactory.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting jsxFragmentFactory.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting lib.errors.txt b/tests/baselines/reference/transpile/Supports setting lib.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting lib.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting lib.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting lib.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting lib.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting locale.errors.txt b/tests/baselines/reference/transpile/Supports setting locale.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting locale.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting locale.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting locale.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting locale.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting module.errors.txt b/tests/baselines/reference/transpile/Supports setting module.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting module.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting module.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting module.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting module.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting moduleResolution.errors.txt b/tests/baselines/reference/transpile/Supports setting moduleResolution.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting moduleResolution.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting moduleResolution.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting moduleResolution.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting moduleResolution.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting newLine.errors.txt b/tests/baselines/reference/transpile/Supports setting newLine.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting newLine.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting newLine.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting newLine.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting newLine.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noEmit.errors.txt b/tests/baselines/reference/transpile/Supports setting noEmit.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noEmit.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noEmit.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting noEmit.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noEmit.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noEmitHelpers.errors.txt b/tests/baselines/reference/transpile/Supports setting noEmitHelpers.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noEmitHelpers.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noEmitHelpers.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting noEmitHelpers.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noEmitHelpers.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noEmitOnError.errors.txt b/tests/baselines/reference/transpile/Supports setting noEmitOnError.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noEmitOnError.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noEmitOnError.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting noEmitOnError.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noEmitOnError.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noErrorTruncation.errors.txt b/tests/baselines/reference/transpile/Supports setting noErrorTruncation.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noErrorTruncation.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noErrorTruncation.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting noErrorTruncation.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noErrorTruncation.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noFallthroughCasesInSwitch.errors.txt b/tests/baselines/reference/transpile/Supports setting noFallthroughCasesInSwitch.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noFallthroughCasesInSwitch.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noFallthroughCasesInSwitch.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting noFallthroughCasesInSwitch.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noFallthroughCasesInSwitch.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noImplicitAny.errors.txt b/tests/baselines/reference/transpile/Supports setting noImplicitAny.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noImplicitAny.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noImplicitAny.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting noImplicitAny.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noImplicitAny.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noImplicitReturns.errors.txt b/tests/baselines/reference/transpile/Supports setting noImplicitReturns.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noImplicitReturns.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noImplicitReturns.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting noImplicitReturns.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noImplicitReturns.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noImplicitThis.errors.txt b/tests/baselines/reference/transpile/Supports setting noImplicitThis.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noImplicitThis.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noImplicitThis.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting noImplicitThis.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noImplicitThis.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noImplicitUseStrict.errors.txt b/tests/baselines/reference/transpile/Supports setting noImplicitUseStrict.errors.txt new file mode 100644 index 0000000000000..3db8569d9cec2 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noImplicitUseStrict.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +!!! error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noImplicitUseStrict.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting noImplicitUseStrict.oldTranspile.errors.txt new file mode 100644 index 0000000000000..3db8569d9cec2 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noImplicitUseStrict.oldTranspile.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +!!! error TS5101: Flag 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noLib.errors.txt b/tests/baselines/reference/transpile/Supports setting noLib.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noLib.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noLib.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting noLib.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noLib.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noResolve.errors.txt b/tests/baselines/reference/transpile/Supports setting noResolve.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noResolve.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting noResolve.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting noResolve.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting noResolve.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting out.errors.txt b/tests/baselines/reference/transpile/Supports setting out.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting out.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting out.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting out.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting out.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting outDir.errors.txt b/tests/baselines/reference/transpile/Supports setting outDir.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting outDir.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting outDir.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting outDir.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting outDir.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting outFile.errors.txt b/tests/baselines/reference/transpile/Supports setting outFile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting outFile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting outFile.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting outFile.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting outFile.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting paths.errors.txt b/tests/baselines/reference/transpile/Supports setting paths.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting paths.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting paths.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting paths.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting paths.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting preserveConstEnums.errors.txt b/tests/baselines/reference/transpile/Supports setting preserveConstEnums.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting preserveConstEnums.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting preserveConstEnums.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting preserveConstEnums.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting preserveConstEnums.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting reactNamespace.errors.txt b/tests/baselines/reference/transpile/Supports setting reactNamespace.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting reactNamespace.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting reactNamespace.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting reactNamespace.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting reactNamespace.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting removeComments.errors.txt b/tests/baselines/reference/transpile/Supports setting removeComments.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting removeComments.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting removeComments.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting removeComments.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting removeComments.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting rootDir.errors.txt b/tests/baselines/reference/transpile/Supports setting rootDir.errors.txt new file mode 100644 index 0000000000000..f34a92a3c0d6f --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting rootDir.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ./rootDir/input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting rootDir.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting rootDir.oldTranspile.errors.txt new file mode 100644 index 0000000000000..f34a92a3c0d6f --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting rootDir.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== ./rootDir/input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting rootDirs.errors.txt b/tests/baselines/reference/transpile/Supports setting rootDirs.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting rootDirs.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting rootDirs.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting rootDirs.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting rootDirs.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting skipDefaultLibCheck.errors.txt b/tests/baselines/reference/transpile/Supports setting skipDefaultLibCheck.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting skipDefaultLibCheck.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting skipDefaultLibCheck.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting skipDefaultLibCheck.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting skipDefaultLibCheck.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting skipLibCheck.errors.txt b/tests/baselines/reference/transpile/Supports setting skipLibCheck.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting skipLibCheck.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting skipLibCheck.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting skipLibCheck.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting skipLibCheck.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting strictNullChecks.errors.txt b/tests/baselines/reference/transpile/Supports setting strictNullChecks.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting strictNullChecks.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting strictNullChecks.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting strictNullChecks.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting strictNullChecks.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting stripInternal.errors.txt b/tests/baselines/reference/transpile/Supports setting stripInternal.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting stripInternal.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting stripInternal.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting stripInternal.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting stripInternal.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting suppressExcessPropertyErrors.errors.txt b/tests/baselines/reference/transpile/Supports setting suppressExcessPropertyErrors.errors.txt new file mode 100644 index 0000000000000..fd27a670b1e5e --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting suppressExcessPropertyErrors.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +error TS5101: Flag 'suppressExcessPropertyErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +!!! error TS5101: Flag 'suppressExcessPropertyErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting suppressExcessPropertyErrors.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting suppressExcessPropertyErrors.oldTranspile.errors.txt new file mode 100644 index 0000000000000..fd27a670b1e5e --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting suppressExcessPropertyErrors.oldTranspile.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +error TS5101: Flag 'suppressExcessPropertyErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +!!! error TS5101: Flag 'suppressExcessPropertyErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting suppressImplicitAnyIndexErrors.errors.txt b/tests/baselines/reference/transpile/Supports setting suppressImplicitAnyIndexErrors.errors.txt new file mode 100644 index 0000000000000..eaaf6053ce005 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting suppressImplicitAnyIndexErrors.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +error TS5101: Flag 'suppressImplicitAnyIndexErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +!!! error TS5101: Flag 'suppressImplicitAnyIndexErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting suppressImplicitAnyIndexErrors.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting suppressImplicitAnyIndexErrors.oldTranspile.errors.txt new file mode 100644 index 0000000000000..eaaf6053ce005 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting suppressImplicitAnyIndexErrors.oldTranspile.errors.txt @@ -0,0 +1,8 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +error TS5101: Flag 'suppressImplicitAnyIndexErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +!!! error TS5101: Flag 'suppressImplicitAnyIndexErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting tsbuildinfo.errors.txt b/tests/baselines/reference/transpile/Supports setting tsbuildinfo.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting tsbuildinfo.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting tsbuildinfo.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting tsbuildinfo.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting tsbuildinfo.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting typeRoots.errors.txt b/tests/baselines/reference/transpile/Supports setting typeRoots.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting typeRoots.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting typeRoots.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting typeRoots.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting typeRoots.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting types.errors.txt b/tests/baselines/reference/transpile/Supports setting types.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting types.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports setting types.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports setting types.oldTranspile.errors.txt new file mode 100644 index 0000000000000..642ca6b0cd212 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports setting types.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + x; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports urls in file name.errors.txt b/tests/baselines/reference/transpile/Supports urls in file name.errors.txt new file mode 100644 index 0000000000000..ea01c1fb084e7 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports urls in file name.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== http://somewhere/directory//directory2/file.ts (0 errors) ==== + var x \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Supports urls in file name.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Supports urls in file name.oldTranspile.errors.txt new file mode 100644 index 0000000000000..ea01c1fb084e7 --- /dev/null +++ b/tests/baselines/reference/transpile/Supports urls in file name.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== http://somewhere/directory//directory2/file.ts (0 errors) ==== + var x \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Uses correct newLine character.errors.txt b/tests/baselines/reference/transpile/Uses correct newLine character.errors.txt new file mode 100644 index 0000000000000..d1d6290d2c9f8 --- /dev/null +++ b/tests/baselines/reference/transpile/Uses correct newLine character.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/Uses correct newLine character.oldTranspile.errors.txt b/tests/baselines/reference/transpile/Uses correct newLine character.oldTranspile.errors.txt new file mode 100644 index 0000000000000..d1d6290d2c9f8 --- /dev/null +++ b/tests/baselines/reference/transpile/Uses correct newLine character.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.ts (0 errors) ==== + var x = 0; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/transpile .js files.errors.txt b/tests/baselines/reference/transpile/transpile .js files.errors.txt new file mode 100644 index 0000000000000..9f04530407b80 --- /dev/null +++ b/tests/baselines/reference/transpile/transpile .js files.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + const a = 10; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/transpile .js files.oldTranspile.errors.txt b/tests/baselines/reference/transpile/transpile .js files.oldTranspile.errors.txt new file mode 100644 index 0000000000000..9f04530407b80 --- /dev/null +++ b/tests/baselines/reference/transpile/transpile .js files.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== input.js (0 errors) ==== + const a = 10; \ No newline at end of file diff --git a/tests/baselines/reference/transpile/transpile file as tsx if jsx is specified.errors.txt b/tests/baselines/reference/transpile/transpile file as tsx if jsx is specified.errors.txt new file mode 100644 index 0000000000000..6abbe102384d9 --- /dev/null +++ b/tests/baselines/reference/transpile/transpile file as tsx if jsx is specified.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.tsx (0 errors) ==== + var x =
\ No newline at end of file diff --git a/tests/baselines/reference/transpile/transpile file as tsx if jsx is specified.oldTranspile.errors.txt b/tests/baselines/reference/transpile/transpile file as tsx if jsx is specified.oldTranspile.errors.txt new file mode 100644 index 0000000000000..6abbe102384d9 --- /dev/null +++ b/tests/baselines/reference/transpile/transpile file as tsx if jsx is specified.oldTranspile.errors.txt @@ -0,0 +1,6 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== file.tsx (0 errors) ==== + var x =
\ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild-discrepancies.js b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild-discrepancies.js new file mode 100644 index 0000000000000..fc821b9dac3cd --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild-discrepancies.js @@ -0,0 +1,303 @@ +2:: rebuilds when tsconfig changes +*** Needs explanation +TsBuild info text without affectedFilesPendingEmit:: /src/tests/tsconfig.tsbuildinfo.readable.baseline.txt:: +CleanBuild: +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "3708260210-const m = 10;", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "target": 0 + }, + "referencedMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts" + ], + "changeFileSet": [ + "./index.ts" + ], + "latestChangedDtsFile": "FakeFileName" + }, + "version": "FakeTSVersion" +} +IncrementalBuild: +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "3708260210-const m = 10;", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "target": 0 + }, + "referencedMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./index.ts" + ], + "latestChangedDtsFile": "FakeFileName" + }, + "version": "FakeTSVersion" +} +Incremental signature is neither dts signature nor file version for File:: ./index.ts +Incremental:: { + "original": { + "version": "3708260210-const m = 10;", + "signature": "1073907769-declare const m = 10;\r\n", + "affectsGlobalScope": true + }, + "version": "3708260210-const m = 10;", + "signature": "1073907769-declare const m = 10;\r\n", + "affectsGlobalScope": true +} +Clean:: { + "original": { + "version": "3708260210-const m = 10;", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "affectsGlobalScope": true + }, + "version": "3708260210-const m = 10;", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "affectsGlobalScope": true +} +Dts Signature:: $undefined +Incremental Reference set is neither from dts nor files reference map for File:: ./index.ts:: +Incremental:: undefined +Clean:: [ + "../core/anothermodule.d.ts" +] +DtsExportsMap:: undefined +Incremental build contains affectedFilesPendingEmit, clean build does not have it: /src/tests/tsconfig.tsbuildinfo.readable.baseline.txt:: +Incremental buildInfoText:: { + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./index.ts" + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "original": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "3708260210-const m = 10;", + "signature": "1073907769-declare const m = 10;\r\n", + "affectsGlobalScope": true + }, + "version": "3708260210-const m = 10;", + "signature": "1073907769-declare const m = 10;\r\n", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "target": 0 + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./index.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./index.ts", + "Js | Dts" + ] + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 929 +} +Clean buildInfoText:: { + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./index.ts", + "../core/anothermodule.d.ts" + ], + "fileNamesList": [ + [ + "../core/anothermodule.d.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "original": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "3708260210-const m = 10;", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "affectsGlobalScope": true + }, + "version": "3708260210-const m = 10;", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "target": 0 + }, + "referencedMap": {}, + "exportedModulesMap": { + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts" + ], + "changeFileSet": [ + "./index.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1031 +} +Incremental build contains ./index.ts file as pending emit, clean build does not have it: /src/tests/tsconfig.tsbuildinfo.readable.baseline.txt:: +Incremental buildInfoText:: { + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./index.ts" + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "original": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "3708260210-const m = 10;", + "signature": "1073907769-declare const m = 10;\r\n", + "affectsGlobalScope": true + }, + "version": "3708260210-const m = 10;", + "signature": "1073907769-declare const m = 10;\r\n", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "target": 0 + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./index.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./index.ts", + "Js | Dts" + ] + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 929 +} +Clean buildInfoText:: { + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./index.ts", + "../core/anothermodule.d.ts" + ], + "fileNamesList": [ + [ + "../core/anothermodule.d.ts" + ] + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "original": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "3708260210-const m = 10;", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "affectsGlobalScope": true + }, + "version": "3708260210-const m = 10;", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "target": 0 + }, + "referencedMap": {}, + "exportedModulesMap": { + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts" + ], + "changeFileSet": [ + "./index.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1031 +} \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js index e542fa29e248c..d1cc2f91baf3d 100644 --- a/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js +++ b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js @@ -670,12 +670,19 @@ Output:: [12:01:03 AM] Building project '/src/tests/tsconfig.json'... -exitCode:: ExitStatus.Success +src/tests/tsconfig.json:8:38 - error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + +8 "composite": true, "target": "es3", +   ~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped -//// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"1073907769-declare const m = 10;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"1073907769-declare const m = 10;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2],"affectedFilesPendingEmit":[2],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -717,9 +724,15 @@ exitCode:: ExitStatus.Success "../../lib/lib.d.ts", "./index.ts" ], + "affectedFilesPendingEmit": [ + [ + "./index.ts", + "Js | Dts" + ] + ], "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 898 + "size": 929 } diff --git a/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js index 4f1b4ec02d3e3..a9c355e5f390b 100644 --- a/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js @@ -131,7 +131,12 @@ Output:: [12:00:29 AM] Building project '/src/tests/tsconfig.json'... -exitCode:: ExitStatus.Success +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/src/core/anotherModule.d.ts] @@ -335,25 +340,8 @@ exports.m = mod; "size": 1514 } -//// [/src/tests/index.d.ts] -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - - -//// [/src/tests/index.js] -"use strict"; -exports.__esModule = true; -exports.m = void 0; -var c = require("../core/index"); -var logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -var mod = require("../core/anotherModule"); -exports.m = mod; - - //// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n","-8396256275-export declare const World = \"hello\";\r\n","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n",{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":"-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n"}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,1]],"semanticDiagnosticsPerFile":[1,3,2,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","signature":false,"affectsGlobalScope":true},{"version":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n","signature":false},{"version":"-8396256275-export declare const World = \"hello\";\r\n","signature":false},{"version":"-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","signature":false},{"version":"12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n","signature":false}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[],"changeFileSet":[1,3,2,4,5]},"version":"FakeTSVersion"} //// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -379,31 +367,39 @@ exports.m = mod; "../../lib/lib.d.ts": { "original": { "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": false, "affectsGlobalScope": true }, "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, "../core/index.d.ts": { - "version": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n", - "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" + "original": { + "version": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n", + "signature": false + }, + "version": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" }, "../core/anothermodule.d.ts": { - "version": "-8396256275-export declare const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" + "original": { + "version": "-8396256275-export declare const World = \"hello\";\r\n", + "signature": false + }, + "version": "-8396256275-export declare const World = \"hello\";\r\n" }, "../logic/index.d.ts": { - "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + "original": { + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "signature": false + }, + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, "./index.ts": { "original": { "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + "signature": false }, - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" } }, "options": { @@ -422,25 +418,17 @@ exports.m = mod; "../logic/index.d.ts" ] }, - "exportedModulesMap": { - "../logic/index.d.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ + "exportedModulesMap": {}, + "changeFileSet": [ "../../lib/lib.d.ts", "../core/anothermodule.d.ts", "../core/index.d.ts", "../logic/index.d.ts", "./index.ts" - ], - "latestChangedDtsFile": "./index.d.ts" + ] }, "version": "FakeTSVersion", - "size": 1672 + "size": 1624 } @@ -454,22 +442,27 @@ Input:: Output:: /lib/tsc --b /src/tests --verbose -[12:00:36 AM] Projects in this build: +[12:00:34 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:00:37 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' +[12:00:35 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than output 'src/core/tsconfig.tsbuildinfo' -[12:00:38 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' +[12:00:36 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than output 'src/logic/tsconfig.tsbuildinfo' -[12:00:39 AM] Project 'src/tests/tsconfig.json' is out of date because output 'src/tests/tsconfig.tsbuildinfo' is older than input 'src/tests/tsconfig.base.json' +[12:00:37 AM] Project 'src/tests/tsconfig.json' is out of date because buildinfo file 'src/tests/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted -[12:00:40 AM] Building project '/src/tests/tsconfig.json'... +[12:00:38 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success +//// [/src/tests/index.d.ts] +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + + //// [/src/tests/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-out.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-out.js index 6ae4da98b2eaf..cb82a18b232dc 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-out.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/config-has-out.js @@ -27,7 +27,12 @@ Output:: >> Screen clear [12:00:15 AM] Starting compilation in watch mode... -[12:00:18 AM] Found 0 errors. Watching for file changes. +a/tsconfig.json:1:21 - error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + +1 {"compilerOptions":{"out":"/a/out.js"}} +   ~~~~~ + +[12:00:18 AM] Found 1 error. Watching for file changes. @@ -80,7 +85,12 @@ Output:: >> Screen clear [12:00:22 AM] File change detected. Starting incremental compilation... -[12:00:26 AM] Found 0 errors. Watching for file changes. +a/tsconfig.json:1:21 - error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + +1 {"compilerOptions":{"out":"/a/out.js"}} +   ~~~~~ + +[12:00:26 AM] Found 1 error. Watching for file changes. @@ -133,7 +143,12 @@ Output:: >> Screen clear [12:00:30 AM] File change detected. Starting incremental compilation... -[12:00:34 AM] Found 0 errors. Watching for file changes. +a/tsconfig.json:1:21 - error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + +1 {"compilerOptions":{"out":"/a/out.js"}} +   ~~~~~ + +[12:00:34 AM] Found 1 error. Watching for file changes. diff --git a/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js b/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js index cb8ce333a59cd..7de22832eda70 100644 --- a/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js +++ b/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js @@ -1299,6 +1299,9 @@ Info 32 [00:01:13.000] response: "5098", "5099", "5100", + "5101", + "5102", + "5103", "6044", "6045", "6046", @@ -2625,6 +2628,9 @@ Info 38 [00:01:19.000] response: "5098", "5099", "5100", + "5101", + "5102", + "5103", "6044", "6045", "6046", @@ -3863,6 +3869,9 @@ Info 40 [00:01:21.000] response: "5098", "5099", "5100", + "5101", + "5102", + "5103", "6044", "6045", "6046", diff --git a/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder.errors.txt b/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder.errors.txt new file mode 100644 index 0000000000000..9b29b4bdcf564 --- /dev/null +++ b/tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder.errors.txt @@ -0,0 +1,18 @@ +error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/salsa/index.js (0 errors) ==== + First.Item = class I {} + Common.Object = class extends First.Item {} + + Workspace.Object = class extends Common.Object {} + + /** @type {Workspace.Object} */ + var am; + +==== tests/cases/conformance/salsa/roots.js (0 errors) ==== + var First = {}; + var Common = {}; + var Workspace = {}; + \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives11.errors.txt b/tests/baselines/reference/typeReferenceDirectives11.errors.txt index 8ca23a2b6260f..35a20b034f44c 100644 --- a/tests/baselines/reference/typeReferenceDirectives11.errors.txt +++ b/tests/baselines/reference/typeReferenceDirectives11.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. /mod1.ts(1,17): error TS6131: Cannot compile modules using option 'out' unless the '--module' flag is 'amd' or 'system'. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== /mod2.ts (0 errors) ==== import {foo} from "./mod1"; export const bar = foo(); diff --git a/tests/baselines/reference/typeReferenceDirectives12.errors.txt b/tests/baselines/reference/typeReferenceDirectives12.errors.txt index 20431e19d9a88..4909b32986a97 100644 --- a/tests/baselines/reference/typeReferenceDirectives12.errors.txt +++ b/tests/baselines/reference/typeReferenceDirectives12.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. /main.ts(1,14): error TS6131: Cannot compile modules using option 'out' unless the '--module' flag is 'amd' or 'system'. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== /mod2.ts (0 errors) ==== import { Cls } from "./main"; import "./mod1"; diff --git a/tests/baselines/reference/typeSatisfaction_js.errors.txt b/tests/baselines/reference/typeSatisfaction_js.errors.txt index 0858b35c7e426..98dba0cbd5f93 100644 --- a/tests/baselines/reference/typeSatisfaction_js.errors.txt +++ b/tests/baselines/reference/typeSatisfaction_js.errors.txt @@ -1,6 +1,8 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. /src/a.js(1,29): error TS8037: Type satisfaction expressions can only be used in TypeScript files. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== /src/a.js (1 errors) ==== var v = undefined satisfies 1; ~ diff --git a/tests/baselines/reference/uniqueSymbolsDeclarationsInJs.errors.txt b/tests/baselines/reference/uniqueSymbolsDeclarationsInJs.errors.txt new file mode 100644 index 0000000000000..289402f545695 --- /dev/null +++ b/tests/baselines/reference/uniqueSymbolsDeclarationsInJs.errors.txt @@ -0,0 +1,33 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. + + +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. +==== tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsDeclarationsInJs.js (0 errors) ==== + // classes + class C { + /** + * @readonly + */ + static readonlyStaticCall = Symbol(); + /** + * @type {unique symbol} + * @readonly + */ + static readonlyStaticType; + /** + * @type {unique symbol} + * @readonly + */ + static readonlyStaticTypeAndCall = Symbol(); + static readwriteStaticCall = Symbol(); + + /** + * @readonly + */ + readonlyCall = Symbol(); + readwriteCall = Symbol(); + } + + /** @type {unique symbol} */ + const a = Symbol(); + \ No newline at end of file diff --git a/tests/baselines/reference/uniqueSymbolsDeclarationsInJsErrors.errors.txt b/tests/baselines/reference/uniqueSymbolsDeclarationsInJsErrors.errors.txt index 16120be782ba0..b994476f912b1 100644 --- a/tests/baselines/reference/uniqueSymbolsDeclarationsInJsErrors.errors.txt +++ b/tests/baselines/reference/uniqueSymbolsDeclarationsInJsErrors.errors.txt @@ -1,7 +1,9 @@ +error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsDeclarationsInJsErrors.js(5,12): error TS1331: A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'. tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsDeclarationsInJsErrors.js(14,12): error TS1331: A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'. +!!! error TS5101: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. ==== tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsDeclarationsInJsErrors.js (2 errors) ==== class C { /** diff --git a/tests/cases/compiler/deprecatedCompilerOptions1.ts b/tests/cases/compiler/deprecatedCompilerOptions1.ts new file mode 100644 index 0000000000000..62434ce440aee --- /dev/null +++ b/tests/cases/compiler/deprecatedCompilerOptions1.ts @@ -0,0 +1,17 @@ +// @typeScriptVersion: 5.0 +// @filename: /foo/tsconfig.json +{ + "compilerOptions": { + "target": "ES3", + "noImplicitUseStrict": true, + "keyofStringsOnly": true, + "suppressExcessPropertyErrors": true, + "suppressImplicitAnyIndexErrors": true, + "noStrictGenericChecks": true, + "charset": "utf8", + "out": "dist.js" + } +} + +// @filename: /foo/a.ts +const a = 1; diff --git a/tests/cases/compiler/deprecatedCompilerOptions2.ts b/tests/cases/compiler/deprecatedCompilerOptions2.ts new file mode 100644 index 0000000000000..6359d9a45bce0 --- /dev/null +++ b/tests/cases/compiler/deprecatedCompilerOptions2.ts @@ -0,0 +1,19 @@ +// @typeScriptVersion: 5.0 +// @filename: /foo/tsconfig.json +{ + "compilerOptions": { + "module": "amd", + "target": "ES3", + "noImplicitUseStrict": true, + "keyofStringsOnly": true, + "suppressExcessPropertyErrors": true, + "suppressImplicitAnyIndexErrors": true, + "noStrictGenericChecks": true, + "charset": "utf8", + "out": "dist.js", + "ignoreDeprecations": "5.0" + } +} + +// @filename: /foo/a.ts +const a = 1; diff --git a/tests/cases/compiler/deprecatedCompilerOptions3.ts b/tests/cases/compiler/deprecatedCompilerOptions3.ts new file mode 100644 index 0000000000000..e7e22ce5b3ff8 --- /dev/null +++ b/tests/cases/compiler/deprecatedCompilerOptions3.ts @@ -0,0 +1,17 @@ +// @typeScriptVersion: 6.0 +// @filename: /foo/tsconfig.json +{ + "compilerOptions": { + "target": "ES3", + "noImplicitUseStrict": true, + "keyofStringsOnly": true, + "suppressExcessPropertyErrors": true, + "suppressImplicitAnyIndexErrors": true, + "noStrictGenericChecks": true, + "charset": "utf8", + "out": "dist.js", + } +} + +// @filename: /foo/a.ts +const a = 1; diff --git a/tests/cases/compiler/deprecatedCompilerOptions4.ts b/tests/cases/compiler/deprecatedCompilerOptions4.ts new file mode 100644 index 0000000000000..f0e0490941ce8 --- /dev/null +++ b/tests/cases/compiler/deprecatedCompilerOptions4.ts @@ -0,0 +1,18 @@ +// @typeScriptVersion: 5.5 +// @filename: /foo/tsconfig.json +{ + "compilerOptions": { + "target": "ES3", + "noImplicitUseStrict": true, + "keyofStringsOnly": true, + "suppressExcessPropertyErrors": true, + "suppressImplicitAnyIndexErrors": true, + "noStrictGenericChecks": true, + "charset": "utf8", + "out": "dist.js", + "ignoreDeprecations": "5.0" + } +} + +// @filename: /foo/a.ts +const a = 1; diff --git a/tests/cases/compiler/deprecatedCompilerOptions5.ts b/tests/cases/compiler/deprecatedCompilerOptions5.ts new file mode 100644 index 0000000000000..e473876de7cc3 --- /dev/null +++ b/tests/cases/compiler/deprecatedCompilerOptions5.ts @@ -0,0 +1,18 @@ +// @typeScriptVersion: 6.0 +// @filename: /foo/tsconfig.json +{ + "compilerOptions": { + "target": "ES3", + "noImplicitUseStrict": true, + "keyofStringsOnly": true, + "suppressExcessPropertyErrors": true, + "suppressImplicitAnyIndexErrors": true, + "noStrictGenericChecks": true, + "charset": "utf8", + "out": "dist.js", + "ignoreDeprecations": "5.0" + } +} + +// @filename: /foo/a.ts +const a = 1;