diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json
index 851b6ad06c622..0d2bacd3c03f5 100644
--- a/src/compiler/diagnosticMessages.json
+++ b/src/compiler/diagnosticMessages.json
@@ -6818,58 +6818,62 @@
"category": "Error",
"code": 9024
},
- "Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.": {
+ "Declaration emit for this expression requires adding a path reference directive to '{0}' with --isolatedDeclarations.": {
"category": "Error",
"code": 9025
},
- "Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.": {
+ "Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.": {
"category": "Error",
"code": 9026
},
- "Add a type annotation to the variable {0}.": {
+ "Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.": {
"category": "Error",
"code": 9027
},
- "Add a type annotation to the parameter {0}.": {
+ "Add a type annotation to the variable {0}.": {
"category": "Error",
"code": 9028
},
- "Add a type annotation to the property {0}.": {
+ "Add a type annotation to the parameter {0}.": {
"category": "Error",
"code": 9029
},
- "Add a return type to the function expression.": {
+ "Add a type annotation to the property {0}.": {
"category": "Error",
"code": 9030
},
- "Add a return type to the function declaration.": {
+ "Add a return type to the function expression.": {
"category": "Error",
"code": 9031
},
- "Add a return type to the get accessor declaration.": {
+ "Add a return type to the function declaration.": {
"category": "Error",
"code": 9032
},
- "Add a type to parameter of the set accessor declaration.": {
+ "Add a return type to the get accessor declaration.": {
"category": "Error",
"code": 9033
},
- "Add a return type to the method": {
+ "Add a type to parameter of the set accessor declaration.": {
"category": "Error",
"code": 9034
},
- "Add a type assertion to this expression to make type type explicit.": {
+ "Add a return type to the method": {
"category": "Error",
"code": 9035
},
- "Move the expression in default export to a variable and add a type annotation to it.": {
+ "Add a type assertion to this expression to make type type explicit.": {
"category": "Error",
"code": 9036
},
- "Default exports can't be inferred with --isolatedDeclarations.": {
+ "Move the expression in default export to a variable and add a type annotation to it.": {
"category": "Error",
"code": 9037
},
+ "Default exports can't be inferred with --isolatedDeclarations.": {
+ "category": "Error",
+ "code": 9038
+ },
"JSX attributes must only be assigned a non-empty 'expression'.": {
"category": "Error",
"code": 17000
@@ -7223,8 +7227,11 @@
"Annotate types of properties expando function in a namespace": {
"category": "Message",
"code": 90071
- },
-
+ },
+ "Add triple slash directives for import resolution": {
+ "category": "Message",
+ "code": 90072
+ },
"Convert function to an ES2015 class": {
"category": "Message",
"code": 95001
diff --git a/src/compiler/transformers/declarations.ts b/src/compiler/transformers/declarations.ts
index 75010dafc1d9b..836b465b056a0 100644
--- a/src/compiler/transformers/declarations.ts
+++ b/src/compiler/transformers/declarations.ts
@@ -721,8 +721,8 @@ export function transformDeclarations(context: TransformationContext) {
if (!isPresentInSource && isolatedDeclarations) {
context.addDiagnostic(createDiagnosticForNode(
requestingNode,
- Diagnostics.Declaration_emit_for_this_expression_requires_adding_a_type_reference_directive_to_0_with_isolatedDeclarations,
- specifier,
+ Diagnostics.Declaration_emit_for_this_expression_requires_adding_a_path_reference_directive_to_0_with_isolatedDeclarations,
+ fileName,
));
}
references.push({ pos: -1, end: -1, fileName });
diff --git a/src/harness/isolatedDeclarationFixer.ts b/src/harness/isolatedDeclarationFixer.ts
index 98d67c2d64398..e301a0e08f8c1 100644
--- a/src/harness/isolatedDeclarationFixer.ts
+++ b/src/harness/isolatedDeclarationFixer.ts
@@ -4,6 +4,7 @@ import * as vfs from "./_namespaces/vfs";
export const isolatedDeclarationsErrors = new Set([
ts.Diagnostics.Declaration_emit_for_this_expression_requires_adding_a_type_reference_directive_to_0_with_isolatedDeclarations,
+ ts.Diagnostics.Declaration_emit_for_this_expression_requires_adding_a_path_reference_directive_to_0_with_isolatedDeclarations,
ts.Diagnostics.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function,
ts.Diagnostics.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations,
ts.Diagnostics.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,
@@ -98,6 +99,8 @@ export function fixProjectInternal(
const fixAll = service.getCombinedCodeFix({ type: "file", fileName: file.fileName }, "fixMissingTypeAnnotationOnExports", defaultFormatOptions, userPreferences);
applyFix(fixAll.changes);
+ const fixAll2 = service.getCombinedCodeFix({ type: "file", fileName: file.fileName }, "fixMissingReferenceDirectivesForIsolatedDeclarations", defaultFormatOptions, userPreferences);
+ applyFix(fixAll2.changes);
// Some fixes need to be applied individually such as fixing `export =`
diagnostics = getIsolatedDeclarationsErrors(file.fileName);
diff --git a/src/services/_namespaces/ts.codefix.ts b/src/services/_namespaces/ts.codefix.ts
index 3d7eec453f32e..311e18c04828d 100644
--- a/src/services/_namespaces/ts.codefix.ts
+++ b/src/services/_namespaces/ts.codefix.ts
@@ -49,6 +49,7 @@ export * from "../codefixes/fixUnreachableCode";
export * from "../codefixes/fixUnusedLabel";
export * from "../codefixes/fixJSDocTypes";
export * from "../codefixes/fixMissingCallParentheses";
+export * from "../codefixes/fixMissingReferenceDirectivesForIsolatedDeclarations";
export * from "../codefixes/fixMissingTypeAnnotationOnExports";
export * from "../codefixes/fixAwaitInSyncFunction";
export * from "../codefixes/fixPropertyOverrideAccessor";
diff --git a/src/services/codefixes/fixMissingReferenceDirectivesForIsolatedDeclarations.ts b/src/services/codefixes/fixMissingReferenceDirectivesForIsolatedDeclarations.ts
new file mode 100644
index 0000000000000..644733adc4e2b
--- /dev/null
+++ b/src/services/codefixes/fixMissingReferenceDirectivesForIsolatedDeclarations.ts
@@ -0,0 +1,42 @@
+import {CodeFixContextBase, Diagnostics, DiagnosticWithLocation, textChanges} from "../_namespaces/ts";
+import {codeFixAll, createCodeFixAction, registerCodeFix} from "../_namespaces/ts.codefix";
+import {ChangeTracker} from "../textChanges";
+
+
+const fixId = "fixMissingReferenceDirectivesForIsolatedDeclarations";
+const errorCodes = [
+ Diagnostics.Declaration_emit_for_this_expression_requires_adding_a_type_reference_directive_to_0_with_isolatedDeclarations,
+ Diagnostics.Declaration_emit_for_this_expression_requires_adding_a_path_reference_directive_to_0_with_isolatedDeclarations
+].map((diag) => diag.code);
+
+registerCodeFix({
+ errorCodes,
+ fixIds: [fixId],
+ getCodeActions(context) {
+ const {span, sourceFile, program} = context;
+ const diags = program.getDeclarationDiagnostics(sourceFile);
+ const diagOnNode = diags.find((diag) => diag.start === span.start);
+ if (diagOnNode) {
+ const changes = textChanges.ChangeTracker.with(context, (changeTracker) => fixDiag(context, diagOnNode, changeTracker));
+ return [
+ createCodeFixAction(
+ fixId,
+ changes,
+ Diagnostics.Add_triple_slash_directives_for_import_resolution,
+ fixId,
+ // TODO: ADD
+ Diagnostics.Add_triple_slash_directives_for_import_resolution)];
+ }
+ },
+ getAllCodeActions: context => codeFixAll(context, errorCodes, (changes, diag) => {
+ fixDiag(context, diag, changes)
+ }),
+});
+
+function fixDiag(context: CodeFixContextBase, diag: DiagnosticWithLocation, changeTracker: ChangeTracker) {
+ const messageText = diag.messageText as string;
+ const first = messageText.indexOf("'");
+ const last = messageText.lastIndexOf("'");
+ const tripleSlashType = diag.code === Diagnostics.Declaration_emit_for_this_expression_requires_adding_a_type_reference_directive_to_0_with_isolatedDeclarations.code ? 'types' : 'path'
+ changeTracker.insertText(context.sourceFile, 0, `/// \n`);
+}
diff --git a/src/testRunner/compilerRunner.ts b/src/testRunner/compilerRunner.ts
index 8fbb5c5b55938..ed6df709ee07e 100644
--- a/src/testRunner/compilerRunner.ts
+++ b/src/testRunner/compilerRunner.ts
@@ -599,6 +599,7 @@ class IsolatedDeclarationTest extends CompilerTestBase {
ts.Diagnostics.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations,
ts.Diagnostics.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations,
ts.Diagnostics.Declaration_emit_for_this_expression_requires_adding_a_type_reference_directive_to_0_with_isolatedDeclarations,
+ ts.Diagnostics.Declaration_emit_for_this_expression_requires_adding_a_path_reference_directive_to_0_with_isolatedDeclarations,
ts.Diagnostics.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function,
ts.Diagnostics.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,
ts.Diagnostics.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,
@@ -732,22 +733,18 @@ export class FixedIsolatedDeclarationTest extends IsolatedDeclarationTest {
fixerOptions.isolatedDeclarations = true;
const fixResults = fixTestFiles(env.fileSystem, env.programFileNames, fixerOptions);
- const hasReferenceDirectiveErrors = fixResults.success && fixResults.unfixedDiagnostics.some(d => FixedIsolatedDeclarationTest.referenceDirectiveErrors.has(d.code));
for (const file of env.allFiles) {
const content = env.fileSystem.readFileSync(file.unitName, "utf-8");
file.content = content;
}
- if (!fixResults.success || hasReferenceDirectiveErrors) {
+ if (!fixResults.success) {
return undefined;
}
env.fileSystem.makeReadonly();
env.fileSystem = env.fileSystem.shadow();
return env;
}
- private static referenceDirectiveErrors = new Set([
- ts.Diagnostics.Declaration_emit_for_this_expression_requires_adding_a_type_reference_directive_to_0_with_isolatedDeclarations.code,
- ]);
protected override get baselinePath() {
return "isolated-declarations/auto-fixed";
diff --git a/tests/baselines/reference/computedPropertiesNarrowed.errors.txt b/tests/baselines/reference/computedPropertiesNarrowed.errors.txt
index 15c4c6e4f758c..b6f256b3bf5a7 100644
--- a/tests/baselines/reference/computedPropertiesNarrowed.errors.txt
+++ b/tests/baselines/reference/computedPropertiesNarrowed.errors.txt
@@ -15,7 +15,7 @@ computedPropertiesNarrowed.ts(47,5): error TS9014: Computed properties must be n
[x]: 1 // error narrow type !== declared type
~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:4:12: Add a type annotation to the variable o.
+!!! related TS9028 computedPropertiesNarrowed.ts:4:12: Add a type annotation to the variable o.
}
@@ -31,24 +31,24 @@ computedPropertiesNarrowed.ts(47,5): error TS9014: Computed properties must be n
export let o32 = { [1-1]: 1 } // error number
~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:18:12: Add a type annotation to the variable o32.
+!!! related TS9028 computedPropertiesNarrowed.ts:18:12: Add a type annotation to the variable o32.
let u = Symbol();
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:20:5: Add a type annotation to the variable u.
+!!! related TS9028 computedPropertiesNarrowed.ts:20:5: Add a type annotation to the variable u.
export let o4 = {
[u]: 1 // Should error, nut a unique symbol
~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:21:12: Add a type annotation to the variable o4.
+!!! related TS9028 computedPropertiesNarrowed.ts:21:12: Add a type annotation to the variable o4.
}
export let o5 ={
[Symbol()]: 1 // Should error
~~~~~~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:25:12: Add a type annotation to the variable o5.
+!!! related TS9028 computedPropertiesNarrowed.ts:25:12: Add a type annotation to the variable o5.
}
const uu: unique symbol = Symbol();
@@ -62,7 +62,7 @@ computedPropertiesNarrowed.ts(47,5): error TS9014: Computed properties must be n
[foo()]: 1 // Should error
~~~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:36:12: Add a type annotation to the variable o7.
+!!! related TS9028 computedPropertiesNarrowed.ts:36:12: Add a type annotation to the variable o7.
};
let E = { A: 1 } as const
@@ -75,6 +75,6 @@ computedPropertiesNarrowed.ts(47,5): error TS9014: Computed properties must be n
[ns().v]: 1
~~~~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:46:14: Add a type annotation to the variable o9.
+!!! related TS9028 computedPropertiesNarrowed.ts:46:14: Add a type annotation to the variable o9.
}
\ No newline at end of file
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/arrayFakeFlatNoCrashInferenceDeclarations.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/arrayFakeFlatNoCrashInferenceDeclarations.d.ts.diff
index 382b1db7563e9..db5d96b79586e 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/arrayFakeFlatNoCrashInferenceDeclarations.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/arrayFakeFlatNoCrashInferenceDeclarations.d.ts.diff
@@ -37,7 +37,7 @@
!!! error TS5088: The inferred type of 'foo' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary.
+ ~~~
+!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-+!!! related TS9031 arrayFakeFlatNoCrashInferenceDeclarations.ts:13:10: Add a return type to the function declaration.
++!!! related TS9032 arrayFakeFlatNoCrashInferenceDeclarations.ts:13:10: Add a return type to the function declaration.
return flat(arr, depth);
}
\ No newline at end of file
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitCommonJsModuleReferencedType.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitCommonJsModuleReferencedType.d.ts.diff
index 4e84b14fc9332..a8f3ab73705d0 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitCommonJsModuleReferencedType.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitCommonJsModuleReferencedType.d.ts.diff
@@ -35,7 +35,7 @@
!!! error TS2742: The inferred type of 'x' cannot be named without a reference to 'foo/node_modules/nested'. This is likely not portable. A type annotation is necessary.
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 r/entry.ts:3:14: Add a type annotation to the variable x.
++!!! related TS9028 r/entry.ts:3:14: Add a type annotation to the variable x.
export const y: RootProps = bar();
\ No newline at end of file
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitForGlobalishSpecifierSymlink.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitForGlobalishSpecifierSymlink.d.ts.diff
index e1fc5ea7d201a..300e342222e6f 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitForGlobalishSpecifierSymlink.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitForGlobalishSpecifierSymlink.d.ts.diff
@@ -50,7 +50,7 @@
+ export const a = getA();
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 /p1/index.ts:4:14: Add a type annotation to the variable a.
++!!! related TS9028 /p1/index.ts:4:14: Add a type annotation to the variable a.
+==== /p2/index.d.ts (0 errors) ====
+ export const a: import("typescript-fsa").A;
+
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitForGlobalishSpecifierSymlink2.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitForGlobalishSpecifierSymlink2.d.ts.diff
index fe73e6db6b8aa..ec28aced082c8 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitForGlobalishSpecifierSymlink2.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitForGlobalishSpecifierSymlink2.d.ts.diff
@@ -38,7 +38,7 @@
+ export const a = getA();
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 /p1/index.ts:4:14: Add a type annotation to the variable a.
++!!! related TS9028 /p1/index.ts:4:14: Add a type annotation to the variable a.
+==== /p2/index.d.ts (0 errors) ====
+ export const a: import("typescript-fsa").A;
+
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitObjectAssignedDefaultExport.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitObjectAssignedDefaultExport.d.ts.diff
index 95356d7d16706..99f9d6731ad71 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitObjectAssignedDefaultExport.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitObjectAssignedDefaultExport.d.ts.diff
@@ -17,7 +17,7 @@
/// [Errors] ////
index.ts(7,1): error TS2742: The inferred type of 'default' cannot be named without a reference to 'styled-components/node_modules/hoist-non-react-statics'. This is likely not portable. A type annotation is necessary.
-+index.ts(7,16): error TS9037: Default exports can't be inferred with --isolatedDeclarations.
++index.ts(7,16): error TS9038: Default exports can't be inferred with --isolatedDeclarations.
==== node_modules/styled-components/node_modules/hoist-non-react-statics/index.d.ts (0 errors) ====
@@ -48,7 +48,7 @@
~~~
!!! error TS2742: The inferred type of 'default' cannot be named without a reference to 'styled-components/node_modules/hoist-non-react-statics'. This is likely not portable. A type annotation is necessary.
+ ~~
-+!!! error TS9037: Default exports can't be inferred with --isolatedDeclarations.
-+!!! related TS9036 index.ts:7:1: Move the expression in default export to a variable and add a type annotation to it.
++!!! error TS9038: Default exports can't be inferred with --isolatedDeclarations.
++!!! related TS9037 index.ts:7:1: Move the expression in default export to a variable and add a type annotation to it.
\ No newline at end of file
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitReexportedSymlinkReference.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitReexportedSymlinkReference.d.ts.diff
index 26d141e503e3c..9a1218ce03f2b 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitReexportedSymlinkReference.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitReexportedSymlinkReference.d.ts.diff
@@ -29,7 +29,7 @@
+ export const ADMIN = MetadataAccessor.create('1');
+ ~~~~~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 monorepo/pkg3/src/keys.ts:3:14: Add a type annotation to the variable ADMIN.
++!!! related TS9028 monorepo/pkg3/src/keys.ts:3:14: Add a type annotation to the variable ADMIN.
+==== monorepo/pkg1/dist/index.d.ts (0 errors) ====
+ export * from './types';
+==== monorepo/pkg1/dist/types.d.ts (0 errors) ====
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitReexportedSymlinkReference2.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitReexportedSymlinkReference2.d.ts.diff
index 3ed893ba9c485..a43dff81abdf7 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitReexportedSymlinkReference2.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitReexportedSymlinkReference2.d.ts.diff
@@ -29,7 +29,7 @@
+ export const ADMIN = MetadataAccessor.create('1');
+ ~~~~~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 monorepo/pkg3/src/keys.ts:3:14: Add a type annotation to the variable ADMIN.
++!!! related TS9028 monorepo/pkg3/src/keys.ts:3:14: Add a type annotation to the variable ADMIN.
+==== monorepo/pkg1/dist/index.d.ts (0 errors) ====
+ export * from './types';
+==== monorepo/pkg1/dist/types.d.ts (0 errors) ====
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitReexportedSymlinkReference3.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitReexportedSymlinkReference3.d.ts.diff
index 8d94e70095c51..d58aa40dc026c 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitReexportedSymlinkReference3.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitReexportedSymlinkReference3.d.ts.diff
@@ -30,7 +30,7 @@
!!! error TS2742: The inferred type of 'ADMIN' cannot be named without a reference to '../../pkg2/node_modules/@raymondfeng/pkg1/dist'. This is likely not portable. A type annotation is necessary.
+ ~~~~~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 monorepo/pkg3/src/keys.ts:3:14: Add a type annotation to the variable ADMIN.
++!!! related TS9028 monorepo/pkg3/src/keys.ts:3:14: Add a type annotation to the variable ADMIN.
==== monorepo/pkg1/dist/index.d.ts (0 errors) ====
export * from './types';
==== monorepo/pkg1/dist/types.d.ts (0 errors) ====
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitWithInvalidPackageJsonTypings.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitWithInvalidPackageJsonTypings.d.ts.diff
index c89380bb2a510..661c59ad91a07 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitWithInvalidPackageJsonTypings.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/declarationEmitWithInvalidPackageJsonTypings.d.ts.diff
@@ -42,8 +42,8 @@
+ export const useCsvParser = () => {
+ ~~~~~~~
+!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-+!!! related TS9027 /p1/index.ts:7:14: Add a type annotation to the variable useCsvParser.
-+!!! related TS9030 /p1/index.ts:7:29: Add a return type to the function expression.
++!!! related TS9028 /p1/index.ts:7:14: Add a type annotation to the variable useCsvParser.
++!!! related TS9031 /p1/index.ts:7:29: Add a return type to the function expression.
+ const parserRef = useRef(null);
+ return parserRef;
+ };
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/isolatedDeclarationErrorsClasses.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/isolatedDeclarationErrorsClasses.d.ts.diff
index a1ba1c9c32509..d009fe623ca32 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/isolatedDeclarationErrorsClasses.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/isolatedDeclarationErrorsClasses.d.ts.diff
@@ -51,7 +51,7 @@
!!! error TS7006: Parameter 'value' implicitly has an 'any' type.
+ ~~~~~
+!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-+!!! related TS9033 isolatedDeclarationErrorsClasses.ts:48:9: Add a type to parameter of the set accessor declaration.
++!!! related TS9034 isolatedDeclarationErrorsClasses.ts:48:9: Add a type to parameter of the set accessor declaration.
[("A" + "B") as "AB"] = 1;
~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/legacyNodeModulesExportsSpecifierGenerationConditions.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/legacyNodeModulesExportsSpecifierGenerationConditions.d.ts.diff
index 999a59d05192e..27394a5a9b4d0 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/legacyNodeModulesExportsSpecifierGenerationConditions.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/legacyNodeModulesExportsSpecifierGenerationConditions.d.ts.diff
@@ -23,8 +23,8 @@
+ export const a = async () => (await import("inner")).x();
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-+!!! related TS9027 index.ts:1:14: Add a type annotation to the variable a.
-+!!! related TS9030 index.ts:1:18: Add a return type to the function expression.
++!!! related TS9028 index.ts:1:14: Add a type annotation to the variable a.
++!!! related TS9031 index.ts:1:18: Add a return type to the function expression.
+==== node_modules/inner/index.d.ts (0 errors) ====
+ export { x } from "./other.js";
+==== node_modules/inner/other.d.ts (0 errors) ====
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModuleReexportFromDottedPath.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModuleReexportFromDottedPath.d.ts.diff
index c96b288b50ee6..23e00285bcce4 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModuleReexportFromDottedPath.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModuleReexportFromDottedPath.d.ts.diff
@@ -18,7 +18,7 @@
+//# sourceMappingURL=index.d.ts.map
+/// [Errors] ////
+
-+/index.ts(4,16): error TS9037: Default exports can't be inferred with --isolatedDeclarations.
++/index.ts(4,16): error TS9038: Default exports can't be inferred with --isolatedDeclarations.
+
+
+==== /node_modules/.prisma/client/index.d.ts (0 errors) ====
@@ -39,7 +39,7 @@
+ const EnhancedPrisma = enhancePrisma(PrismaClient);
+ export default new EnhancedPrisma();
+ ~~~~~~~~~~~~~~~~~~~~
-+!!! error TS9037: Default exports can't be inferred with --isolatedDeclarations.
-+!!! related TS9036 /index.ts:4:1: Move the expression in default export to a variable and add a type annotation to it.
++!!! error TS9038: Default exports can't be inferred with --isolatedDeclarations.
++!!! related TS9037 /index.ts:4:1: Move the expression in default export to a variable and add a type annotation to it.
+
\ No newline at end of file
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsBlocksSpecifierResolution(module=node16).d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsBlocksSpecifierResolution(module=node16).d.ts.diff
index f1eff12356549..0704f2ed6c308 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsBlocksSpecifierResolution(module=node16).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsBlocksSpecifierResolution(module=node16).d.ts.diff
@@ -33,7 +33,7 @@
!!! error TS2742: The inferred type of 'a' cannot be named without a reference to './node_modules/inner/other.js'. This is likely not portable. A type annotation is necessary.
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
++!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).d.ts.diff
index f1eff12356549..0704f2ed6c308 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).d.ts.diff
@@ -33,7 +33,7 @@
!!! error TS2742: The inferred type of 'a' cannot be named without a reference to './node_modules/inner/other.js'. This is likely not portable. A type annotation is necessary.
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
++!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSourceTs(module=node16).d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSourceTs(module=node16).d.ts.diff
index 8a686a6acc96f..1969a58c0e338 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSourceTs(module=node16).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSourceTs(module=node16).d.ts.diff
@@ -37,7 +37,7 @@
!!! error TS2742: The inferred type of 'a' cannot be named without a reference to './node_modules/inner/other.js'. This is likely not portable. A type annotation is necessary.
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
++!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSourceTs(module=nodenext).d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSourceTs(module=nodenext).d.ts.diff
index 8a686a6acc96f..1969a58c0e338 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSourceTs(module=nodenext).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSourceTs(module=nodenext).d.ts.diff
@@ -37,7 +37,7 @@
!!! error TS2742: The inferred type of 'a' cannot be named without a reference to './node_modules/inner/other.js'. This is likely not portable. A type annotation is necessary.
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
++!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationConditions(module=node16).d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationConditions(module=node16).d.ts.diff
index aa8a7cb789373..33f7d40594d06 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationConditions(module=node16).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationConditions(module=node16).d.ts.diff
@@ -31,7 +31,7 @@
export const a = (await import("inner")).x();
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
++!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).d.ts.diff
index aa8a7cb789373..33f7d40594d06 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).d.ts.diff
@@ -31,7 +31,7 @@
export const a = (await import("inner")).x();
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
++!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationDirectory(module=node16).d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationDirectory(module=node16).d.ts.diff
index 4770552702e68..e67ae1fdbd144 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationDirectory(module=node16).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationDirectory(module=node16).d.ts.diff
@@ -31,7 +31,7 @@
export const a = (await import("inner/index.js")).x();
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
++!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).d.ts.diff
index 4770552702e68..e67ae1fdbd144 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).d.ts.diff
@@ -31,7 +31,7 @@
export const a = (await import("inner/index.js")).x();
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
++!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationPattern(module=node16).d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationPattern(module=node16).d.ts.diff
index 1e967dcf13ea9..701a9308b57e9 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationPattern(module=node16).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationPattern(module=node16).d.ts.diff
@@ -31,7 +31,7 @@
export const a = (await import("inner/index.js")).x();
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
++!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).d.ts.diff
index 1e967dcf13ea9..701a9308b57e9 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).d.ts.diff
@@ -31,7 +31,7 @@
export const a = (await import("inner/index.js")).x();
+ ~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
++!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/symbolLinkDeclarationEmitModuleNamesImportRef.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/symbolLinkDeclarationEmitModuleNamesImportRef.d.ts.diff
index 9ca19f3760fb9..6165fda65f07e 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/symbolLinkDeclarationEmitModuleNamesImportRef.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/symbolLinkDeclarationEmitModuleNamesImportRef.d.ts.diff
@@ -25,7 +25,7 @@
+ export function getStyles() {
+ ~~~~~~~~~
+!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-+!!! related TS9031 Folder/monorepo/core/index.ts:3:17: Add a return type to the function declaration.
++!!! related TS9032 Folder/monorepo/core/index.ts:3:17: Add a return type to the function declaration.
+ return styles;
+ }
+
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/typesVersionsDeclarationEmit.multiFile.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/typesVersionsDeclarationEmit.multiFile.d.ts.diff
index cecc1f3d4f4f4..8ca82898ff9c6 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/typesVersionsDeclarationEmit.multiFile.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/typesVersionsDeclarationEmit.multiFile.d.ts.diff
@@ -29,11 +29,11 @@
+ export const va = fa();
+ ~~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 main.ts:4:14: Add a type annotation to the variable va.
++!!! related TS9028 main.ts:4:14: Add a type annotation to the variable va.
+ export const vb = fb();
+ ~~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 main.ts:5:14: Add a type annotation to the variable vb.
++!!! related TS9028 main.ts:5:14: Add a type annotation to the variable vb.
+
+==== node_modules/ext/package.json (0 errors) ====
+ {
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.d.ts.diff
index fcf451f906958..44ec2b076387c 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.d.ts.diff
@@ -30,7 +30,7 @@
export const vb = fb();
+ ~~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 main.ts:5:14: Add a type annotation to the variable vb.
++!!! related TS9028 main.ts:5:14: Add a type annotation to the variable vb.
==== node_modules/ext/package.json (0 errors) ====
{
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.d.ts.diff b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.d.ts.diff
index 32343757ce7a9..8175634747bc5 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/diff/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/diff/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.d.ts.diff
@@ -29,11 +29,11 @@
+ export const va = fa();
+ ~~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 main.ts:4:14: Add a type annotation to the variable va.
++!!! related TS9028 main.ts:4:14: Add a type annotation to the variable va.
+ export const va2 = fa2();
+ ~~~
+!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-+!!! related TS9027 main.ts:5:14: Add a type annotation to the variable va2.
++!!! related TS9028 main.ts:5:14: Add a type annotation to the variable va2.
+
+==== node_modules/ext/package.json (0 errors) ====
+ {
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/arrayFakeFlatNoCrashInferenceDeclarations.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/arrayFakeFlatNoCrashInferenceDeclarations.d.ts
index 5f82d670c77f9..c55b48d76ee0b 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/arrayFakeFlatNoCrashInferenceDeclarations.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/arrayFakeFlatNoCrashInferenceDeclarations.d.ts
@@ -55,6 +55,6 @@ arrayFakeFlatNoCrashInferenceDeclarations.ts(13,10): error TS9007: Function must
!!! error TS5088: The inferred type of 'foo' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary.
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 arrayFakeFlatNoCrashInferenceDeclarations.ts:13:10: Add a return type to the function declaration.
+!!! related TS9032 arrayFakeFlatNoCrashInferenceDeclarations.ts:13:10: Add a return type to the function declaration.
return flat(arr, depth);
}
\ No newline at end of file
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitCommonJsModuleReferencedType.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitCommonJsModuleReferencedType.d.ts
index ae4819366f2ea..2d31a9b44598e 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitCommonJsModuleReferencedType.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitCommonJsModuleReferencedType.d.ts
@@ -64,6 +64,6 @@ r/entry.ts(3,14): error TS9010: Variable must have an explicit type annotation w
!!! error TS2742: The inferred type of 'x' cannot be named without a reference to 'foo/node_modules/nested'. This is likely not portable. A type annotation is necessary.
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 r/entry.ts:3:14: Add a type annotation to the variable x.
+!!! related TS9028 r/entry.ts:3:14: Add a type annotation to the variable x.
export const y: RootProps = bar();
\ No newline at end of file
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitForGlobalishSpecifierSymlink.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitForGlobalishSpecifierSymlink.d.ts
index 26e4b87b9a461..86973ab021a73 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitForGlobalishSpecifierSymlink.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitForGlobalishSpecifierSymlink.d.ts
@@ -77,7 +77,7 @@ export declare const a: invalid;
export const a = getA();
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 /p1/index.ts:4:14: Add a type annotation to the variable a.
+!!! related TS9028 /p1/index.ts:4:14: Add a type annotation to the variable a.
==== /p2/index.d.ts (0 errors) ====
export const a: import("typescript-fsa").A;
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitForGlobalishSpecifierSymlink2.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitForGlobalishSpecifierSymlink2.d.ts
index ee757c890d59c..80b40139ab018 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitForGlobalishSpecifierSymlink2.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitForGlobalishSpecifierSymlink2.d.ts
@@ -53,7 +53,7 @@ export declare const a: invalid;
export const a = getA();
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 /p1/index.ts:4:14: Add a type annotation to the variable a.
+!!! related TS9028 /p1/index.ts:4:14: Add a type annotation to the variable a.
==== /p2/index.d.ts (0 errors) ====
export const a: import("typescript-fsa").A;
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitObjectAssignedDefaultExport.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitObjectAssignedDefaultExport.d.ts
index 4df5916584557..d16ea67f05115 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitObjectAssignedDefaultExport.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitObjectAssignedDefaultExport.d.ts
@@ -53,7 +53,7 @@ export default _default;
/// [Errors] ////
index.ts(7,1): error TS2742: The inferred type of 'default' cannot be named without a reference to 'styled-components/node_modules/hoist-non-react-statics'. This is likely not portable. A type annotation is necessary.
-index.ts(7,16): error TS9037: Default exports can't be inferred with --isolatedDeclarations.
+index.ts(7,16): error TS9038: Default exports can't be inferred with --isolatedDeclarations.
==== node_modules/styled-components/node_modules/hoist-non-react-statics/index.d.ts (0 errors) ====
@@ -103,6 +103,6 @@ index.ts(7,16): error TS9037: Default exports can't be inferred with --isolatedD
~~~
!!! error TS2742: The inferred type of 'default' cannot be named without a reference to 'styled-components/node_modules/hoist-non-react-statics'. This is likely not portable. A type annotation is necessary.
~~
-!!! error TS9037: Default exports can't be inferred with --isolatedDeclarations.
-!!! related TS9036 index.ts:7:1: Move the expression in default export to a variable and add a type annotation to it.
+!!! error TS9038: Default exports can't be inferred with --isolatedDeclarations.
+!!! related TS9037 index.ts:7:1: Move the expression in default export to a variable and add a type annotation to it.
\ No newline at end of file
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitReexportedSymlinkReference.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitReexportedSymlinkReference.d.ts
index f6623bef4bce4..295e661138a8d 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitReexportedSymlinkReference.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitReexportedSymlinkReference.d.ts
@@ -66,7 +66,7 @@ monorepo/pkg3/src/keys.ts(3,14): error TS9010: Variable must have an explicit ty
export const ADMIN = MetadataAccessor.create('1');
~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 monorepo/pkg3/src/keys.ts:3:14: Add a type annotation to the variable ADMIN.
+!!! related TS9028 monorepo/pkg3/src/keys.ts:3:14: Add a type annotation to the variable ADMIN.
==== monorepo/pkg1/dist/index.d.ts (0 errors) ====
export * from './types';
==== monorepo/pkg1/dist/types.d.ts (0 errors) ====
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitReexportedSymlinkReference2.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitReexportedSymlinkReference2.d.ts
index ada08bdc00865..92652406da76b 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitReexportedSymlinkReference2.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitReexportedSymlinkReference2.d.ts
@@ -69,7 +69,7 @@ monorepo/pkg3/src/keys.ts(3,14): error TS9010: Variable must have an explicit ty
export const ADMIN = MetadataAccessor.create('1');
~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 monorepo/pkg3/src/keys.ts:3:14: Add a type annotation to the variable ADMIN.
+!!! related TS9028 monorepo/pkg3/src/keys.ts:3:14: Add a type annotation to the variable ADMIN.
==== monorepo/pkg1/dist/index.d.ts (0 errors) ====
export * from './types';
==== monorepo/pkg1/dist/types.d.ts (0 errors) ====
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitReexportedSymlinkReference3.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitReexportedSymlinkReference3.d.ts
index 44bdd7e268c86..5f70ad44601da 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitReexportedSymlinkReference3.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitReexportedSymlinkReference3.d.ts
@@ -69,7 +69,7 @@ monorepo/pkg3/src/keys.ts(3,14): error TS9010: Variable must have an explicit ty
!!! error TS2742: The inferred type of 'ADMIN' cannot be named without a reference to '../../pkg2/node_modules/@raymondfeng/pkg1/dist'. This is likely not portable. A type annotation is necessary.
~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 monorepo/pkg3/src/keys.ts:3:14: Add a type annotation to the variable ADMIN.
+!!! related TS9028 monorepo/pkg3/src/keys.ts:3:14: Add a type annotation to the variable ADMIN.
==== monorepo/pkg1/dist/index.d.ts (0 errors) ====
export * from './types';
==== monorepo/pkg1/dist/types.d.ts (0 errors) ====
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitWithInvalidPackageJsonTypings.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitWithInvalidPackageJsonTypings.d.ts
index b733e43c79072..299e185b775c5 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitWithInvalidPackageJsonTypings.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/declarationEmitWithInvalidPackageJsonTypings.d.ts
@@ -63,8 +63,8 @@ export declare const useCsvParser: () => invalid;
export const useCsvParser = () => {
~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 /p1/index.ts:7:14: Add a type annotation to the variable useCsvParser.
-!!! related TS9030 /p1/index.ts:7:29: Add a return type to the function expression.
+!!! related TS9028 /p1/index.ts:7:14: Add a type annotation to the variable useCsvParser.
+!!! related TS9031 /p1/index.ts:7:29: Add a return type to the function expression.
const parserRef = useRef(null);
return parserRef;
};
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/isolatedDeclarationErrorsClasses.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/isolatedDeclarationErrorsClasses.d.ts
index 9ebc580ad88ed..778b50c9e033d 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/isolatedDeclarationErrorsClasses.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/isolatedDeclarationErrorsClasses.d.ts
@@ -172,7 +172,7 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS7010: '[noAnnotationLiteralNa
!!! error TS7006: Parameter 'value' implicitly has an 'any' type.
~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9033 isolatedDeclarationErrorsClasses.ts:48:9: Add a type to parameter of the set accessor declaration.
+!!! related TS9034 isolatedDeclarationErrorsClasses.ts:48:9: Add a type to parameter of the set accessor declaration.
[("A" + "B") as "AB"] = 1;
~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/legacyNodeModulesExportsSpecifierGenerationConditions.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/legacyNodeModulesExportsSpecifierGenerationConditions.d.ts
index bb4b4bb308ea4..a68e171f35ada 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/legacyNodeModulesExportsSpecifierGenerationConditions.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/legacyNodeModulesExportsSpecifierGenerationConditions.d.ts
@@ -47,8 +47,8 @@ index.ts(1,18): error TS9007: Function must have an explicit return type annotat
export const a = async () => (await import("inner")).x();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 index.ts:1:14: Add a type annotation to the variable a.
-!!! related TS9030 index.ts:1:18: Add a return type to the function expression.
+!!! related TS9028 index.ts:1:14: Add a type annotation to the variable a.
+!!! related TS9031 index.ts:1:18: Add a return type to the function expression.
==== node_modules/inner/index.d.ts (0 errors) ====
export { x } from "./other.js";
==== node_modules/inner/other.d.ts (0 errors) ====
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModuleReexportFromDottedPath.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModuleReexportFromDottedPath.d.ts
index d61e6fe31796c..db15deb580690 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModuleReexportFromDottedPath.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModuleReexportFromDottedPath.d.ts
@@ -29,7 +29,7 @@ export default _default;
//# sourceMappingURL=index.d.ts.map
/// [Errors] ////
-/index.ts(4,16): error TS9037: Default exports can't be inferred with --isolatedDeclarations.
+/index.ts(4,16): error TS9038: Default exports can't be inferred with --isolatedDeclarations.
==== /node_modules/.prisma/client/index.d.ts (0 errors) ====
@@ -50,6 +50,6 @@ export default _default;
const EnhancedPrisma = enhancePrisma(PrismaClient);
export default new EnhancedPrisma();
~~~~~~~~~~~~~~~~~~~~
-!!! error TS9037: Default exports can't be inferred with --isolatedDeclarations.
-!!! related TS9036 /index.ts:4:1: Move the expression in default export to a variable and add a type annotation to it.
+!!! error TS9038: Default exports can't be inferred with --isolatedDeclarations.
+!!! related TS9037 /index.ts:4:1: Move the expression in default export to a variable and add a type annotation to it.
\ No newline at end of file
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsBlocksSpecifierResolution(module=node16).d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsBlocksSpecifierResolution(module=node16).d.ts
index dcc92bdd91479..1b52ddcd21fab 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsBlocksSpecifierResolution(module=node16).d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsBlocksSpecifierResolution(module=node16).d.ts
@@ -54,7 +54,7 @@ index.ts(3,25): error TS2712: A dynamic import call in ES5/ES3 requires the 'Pro
!!! error TS2742: The inferred type of 'a' cannot be named without a reference to './node_modules/inner/other.js'. This is likely not portable. A type annotation is necessary.
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
+!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).d.ts
index dcc92bdd91479..1b52ddcd21fab 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).d.ts
@@ -54,7 +54,7 @@ index.ts(3,25): error TS2712: A dynamic import call in ES5/ES3 requires the 'Pro
!!! error TS2742: The inferred type of 'a' cannot be named without a reference to './node_modules/inner/other.js'. This is likely not portable. A type annotation is necessary.
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
+!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSourceTs(module=node16).d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSourceTs(module=node16).d.ts
index 42090bdef2369..b82b171a74732 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSourceTs(module=node16).d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSourceTs(module=node16).d.ts
@@ -63,7 +63,7 @@ index.ts(3,25): error TS2712: A dynamic import call in ES5/ES3 requires the 'Pro
!!! error TS2742: The inferred type of 'a' cannot be named without a reference to './node_modules/inner/other.js'. This is likely not portable. A type annotation is necessary.
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
+!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSourceTs(module=nodenext).d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSourceTs(module=nodenext).d.ts
index 42090bdef2369..b82b171a74732 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSourceTs(module=nodenext).d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSourceTs(module=nodenext).d.ts
@@ -63,7 +63,7 @@ index.ts(3,25): error TS2712: A dynamic import call in ES5/ES3 requires the 'Pro
!!! error TS2742: The inferred type of 'a' cannot be named without a reference to './node_modules/inner/other.js'. This is likely not portable. A type annotation is necessary.
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
+!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationConditions(module=node16).d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationConditions(module=node16).d.ts
index 5441c906e03fd..eea852f6c5d35 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationConditions(module=node16).d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationConditions(module=node16).d.ts
@@ -58,7 +58,7 @@ index.ts(3,25): error TS2712: A dynamic import call in ES5/ES3 requires the 'Pro
export const a = (await import("inner")).x();
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
+!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).d.ts
index 5441c906e03fd..eea852f6c5d35 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).d.ts
@@ -58,7 +58,7 @@ index.ts(3,25): error TS2712: A dynamic import call in ES5/ES3 requires the 'Pro
export const a = (await import("inner")).x();
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
+!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationDirectory(module=node16).d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationDirectory(module=node16).d.ts
index 11fdf908faa8b..08fa72423621a 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationDirectory(module=node16).d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationDirectory(module=node16).d.ts
@@ -53,7 +53,7 @@ index.ts(3,25): error TS2712: A dynamic import call in ES5/ES3 requires the 'Pro
export const a = (await import("inner/index.js")).x();
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
+!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).d.ts
index 11fdf908faa8b..08fa72423621a 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).d.ts
@@ -53,7 +53,7 @@ index.ts(3,25): error TS2712: A dynamic import call in ES5/ES3 requires the 'Pro
export const a = (await import("inner/index.js")).x();
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
+!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationPattern(module=node16).d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationPattern(module=node16).d.ts
index 53cbdbdf6506c..b70b371679852 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationPattern(module=node16).d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationPattern(module=node16).d.ts
@@ -53,7 +53,7 @@ index.ts(3,25): error TS2712: A dynamic import call in ES5/ES3 requires the 'Pro
export const a = (await import("inner/index.js")).x();
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
+!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).d.ts
index 53cbdbdf6506c..b70b371679852 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).d.ts
@@ -53,7 +53,7 @@ index.ts(3,25): error TS2712: A dynamic import call in ES5/ES3 requires the 'Pro
export const a = (await import("inner/index.js")).x();
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 index.ts:3:14: Add a type annotation to the variable a.
+!!! related TS9028 index.ts:3:14: Add a type annotation to the variable a.
~~~~~
!!! error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/symbolLinkDeclarationEmitModuleNamesImportRef.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/symbolLinkDeclarationEmitModuleNamesImportRef.d.ts
index 9f0e53d31e04a..3d0c13c947cfe 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/symbolLinkDeclarationEmitModuleNamesImportRef.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/symbolLinkDeclarationEmitModuleNamesImportRef.d.ts
@@ -38,7 +38,7 @@ Folder/monorepo/core/index.ts(3,17): error TS9007: Function must have an explici
export function getStyles() {
~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 Folder/monorepo/core/index.ts:3:17: Add a return type to the function declaration.
+!!! related TS9032 Folder/monorepo/core/index.ts:3:17: Add a return type to the function declaration.
return styles;
}
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/typesVersionsDeclarationEmit.multiFile.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/typesVersionsDeclarationEmit.multiFile.d.ts
index 7ecedcad50dc8..0cc78470aad51 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/typesVersionsDeclarationEmit.multiFile.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/typesVersionsDeclarationEmit.multiFile.d.ts
@@ -55,11 +55,11 @@ main.ts(5,14): error TS9010: Variable must have an explicit type annotation with
export const va = fa();
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 main.ts:4:14: Add a type annotation to the variable va.
+!!! related TS9028 main.ts:4:14: Add a type annotation to the variable va.
export const vb = fb();
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 main.ts:5:14: Add a type annotation to the variable vb.
+!!! related TS9028 main.ts:5:14: Add a type annotation to the variable vb.
==== node_modules/ext/package.json (0 errors) ====
{
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.d.ts
index 1560a52016c66..63417f7de7304 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.d.ts
@@ -56,7 +56,7 @@ main.ts(5,14): error TS9010: Variable must have an explicit type annotation with
export const vb = fb();
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 main.ts:5:14: Add a type annotation to the variable vb.
+!!! related TS9028 main.ts:5:14: Add a type annotation to the variable vb.
==== node_modules/ext/package.json (0 errors) ====
{
diff --git a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.d.ts b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.d.ts
index 74cd7317d9d6d..770f4b62704d5 100644
--- a/tests/baselines/reference/isolated-declarations/auto-fixed/dte/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.d.ts
+++ b/tests/baselines/reference/isolated-declarations/auto-fixed/dte/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.d.ts
@@ -52,11 +52,11 @@ main.ts(5,14): error TS9010: Variable must have an explicit type annotation with
export const va = fa();
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 main.ts:4:14: Add a type annotation to the variable va.
+!!! related TS9028 main.ts:4:14: Add a type annotation to the variable va.
export const va2 = fa2();
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 main.ts:5:14: Add a type annotation to the variable va2.
+!!! related TS9028 main.ts:5:14: Add a type annotation to the variable va2.
==== node_modules/ext/package.json (0 errors) ====
{
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/computedPropertiesNarrowed.d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/computedPropertiesNarrowed.d.ts.diff
index a0e96d3c4d5aa..b78264c9fbad5 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/computedPropertiesNarrowed.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/computedPropertiesNarrowed.d.ts.diff
@@ -28,19 +28,19 @@
[x]: 1 // error narrow type !== declared type
- ~~~
-!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
--!!! related TS9027 computedPropertiesNarrowed.ts:4:12: Add a type annotation to the variable o.
+-!!! related TS9028 computedPropertiesNarrowed.ts:4:12: Add a type annotation to the variable o.
}
const y: 0 = 0
@@ -77,11 +72,8 @@
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
- !!! related TS9027 computedPropertiesNarrowed.ts:20:5: Add a type annotation to the variable u.
+ !!! related TS9028 computedPropertiesNarrowed.ts:20:5: Add a type annotation to the variable u.
export let o4 = {
[u]: 1 // Should error, nut a unique symbol
- ~~~
-!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
--!!! related TS9027 computedPropertiesNarrowed.ts:21:12: Add a type annotation to the variable o4.
+-!!! related TS9028 computedPropertiesNarrowed.ts:21:12: Add a type annotation to the variable o4.
}
export let o5 ={
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/declarationEmitBundleWithAmbientReferences.d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/declarationEmitBundleWithAmbientReferences.d.ts.diff
index ed02b54336766..0ec083f4f923c 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/declarationEmitBundleWithAmbientReferences.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/declarationEmitBundleWithAmbientReferences.d.ts.diff
@@ -16,7 +16,7 @@
-
-/// [Errors] ////
-
--src/datastore_result.ts(1,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './lib/lib' with --isolatedDeclarations.
+-src/datastore_result.ts(1,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../lib/lib.d.ts' with --isolatedDeclarations.
-
-
-==== lib/lib.d.ts (0 errors) ====
@@ -29,7 +29,7 @@
-==== src/datastore_result.ts (1 errors) ====
- import { Result } from "lib/result";
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './lib/lib' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../lib/lib.d.ts' with --isolatedDeclarations.
-
- export type T = Result;
-
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/declarationEmitParameterProperty.d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/declarationEmitParameterProperty.d.ts.diff
index 735f297be5d75..23b6aab561740 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/declarationEmitParameterProperty.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/declarationEmitParameterProperty.d.ts.diff
@@ -18,15 +18,15 @@
-
-/// [Errors] ////
-
--declarationEmitParameterProperty.ts(2,15): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+-declarationEmitParameterProperty.ts(2,15): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
-
-
-==== declarationEmitParameterProperty.ts (1 errors) ====
- export class Foo {
- constructor(public bar?: string) {
- ~~~~~~~~~~~~~~~~~~~
--!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
--!!! related TS9028 declarationEmitParameterProperty.ts:2:15: Add a type annotation to the parameter bar.
+-!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+-!!! related TS9029 declarationEmitParameterProperty.ts:2:15: Add a type annotation to the parameter bar.
- }
\ No newline at end of file
- }
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/defaultParameterAddsUndefinedWithStrictNullChecks.d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/defaultParameterAddsUndefinedWithStrictNullChecks.d.ts.diff
index 8a6e2e30754b3..c490ca58f4ad4 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/defaultParameterAddsUndefinedWithStrictNullChecks.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/defaultParameterAddsUndefinedWithStrictNullChecks.d.ts.diff
@@ -26,12 +26,12 @@
defaultParameterAddsUndefinedWithStrictNullChecks.ts(1,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
defaultParameterAddsUndefinedWithStrictNullChecks.ts(4,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
--defaultParameterAddsUndefinedWithStrictNullChecks.ts(4,12): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
- defaultParameterAddsUndefinedWithStrictNullChecks.ts(7,5): error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
+-defaultParameterAddsUndefinedWithStrictNullChecks.ts(4,12): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+ defaultParameterAddsUndefinedWithStrictNullChecks.ts(7,13): error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
defaultParameterAddsUndefinedWithStrictNullChecks.ts(10,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
--defaultParameterAddsUndefinedWithStrictNullChecks.ts(10,15): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+-defaultParameterAddsUndefinedWithStrictNullChecks.ts(10,15): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
defaultParameterAddsUndefinedWithStrictNullChecks.ts(14,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
--defaultParameterAddsUndefinedWithStrictNullChecks.ts(14,15): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+-defaultParameterAddsUndefinedWithStrictNullChecks.ts(14,15): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
defaultParameterAddsUndefinedWithStrictNullChecks.ts(18,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
defaultParameterAddsUndefinedWithStrictNullChecks.ts(23,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
defaultParameterAddsUndefinedWithStrictNullChecks.ts(29,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
@@ -45,15 +45,15 @@
function f(addUndefined1 = "J", addUndefined2?: number) {
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
- !!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:1:10: Add a return type to the function declaration.
+ !!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:1:10: Add a return type to the function declaration.
@@ -42,11 +39,8 @@
function g(addUndefined = "J", addDefined: number) {
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
- !!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:4:10: Add a return type to the function declaration.
+ !!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:4:10: Add a return type to the function declaration.
- ~~~~~~~~~~~~~~~~~~
--!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
--!!! related TS9028 defaultParameterAddsUndefinedWithStrictNullChecks.ts:4:12: Add a type annotation to the parameter addUndefined.
+-!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+-!!! related TS9029 defaultParameterAddsUndefinedWithStrictNullChecks.ts:4:12: Add a type annotation to the parameter addUndefined.
return addUndefined.length + addDefined;
}
let total = f() + f('a', 1) + f('b') + f(undefined, 2);
@@ -62,20 +62,20 @@
function foo1(x: string = "string", b: number) {
~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
- !!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:10:10: Add a return type to the function declaration.
+ !!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:10:10: Add a return type to the function declaration.
- ~~~~~~~~~~~~~~~~~~~~
--!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
--!!! related TS9028 defaultParameterAddsUndefinedWithStrictNullChecks.ts:10:15: Add a type annotation to the parameter x.
+-!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+-!!! related TS9029 defaultParameterAddsUndefinedWithStrictNullChecks.ts:10:15: Add a type annotation to the parameter x.
x.length;
}
function foo2(x = "string", b: number) {
~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
- !!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:14:10: Add a return type to the function declaration.
+ !!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:14:10: Add a return type to the function declaration.
- ~~~~~~~~~~~~
--!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
--!!! related TS9028 defaultParameterAddsUndefinedWithStrictNullChecks.ts:14:15: Add a type annotation to the parameter x.
+-!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+-!!! related TS9029 defaultParameterAddsUndefinedWithStrictNullChecks.ts:14:15: Add a type annotation to the parameter x.
x.length; // ok, should be string
}
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/isolatedDeclarationErrorsClasses.d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/isolatedDeclarationErrorsClasses.d.ts.diff
index 7c26c45c607be..d4ac594866831 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/isolatedDeclarationErrorsClasses.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/isolatedDeclarationErrorsClasses.d.ts.diff
@@ -70,7 +70,7 @@
~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
+!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-+!!! related TS9032 isolatedDeclarationErrorsClasses.ts:46:9: Add a return type to the get accessor declaration.
++!!! related TS9033 isolatedDeclarationErrorsClasses.ts:46:9: Add a return type to the get accessor declaration.
set [noParamAnnotationStringName](value) { }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -81,7 +81,7 @@
!!! error TS7006: Parameter 'value' implicitly has an 'any' type.
+ ~~~~~
+!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-+!!! related TS9033 isolatedDeclarationErrorsClasses.ts:48:9: Add a type to parameter of the set accessor declaration.
++!!! related TS9034 isolatedDeclarationErrorsClasses.ts:48:9: Add a type to parameter of the set accessor declaration.
[("A" + "B") as "AB"] = 1;
~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/isolatedDeclarationsAddUndefined.d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/isolatedDeclarationsAddUndefined.d.ts.diff
index 90338028cd53d..1a40266d59104 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/isolatedDeclarationsAddUndefined.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/isolatedDeclarationsAddUndefined.d.ts.diff
@@ -20,7 +20,7 @@
/// [Errors] ////
file1.ts(4,11): error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
--file2.ts(1,26): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+-file2.ts(1,26): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
==== file1.ts (1 errors) ====
@@ -34,8 +34,8 @@
+==== file2.ts (0 errors) ====
export function foo(p = (ip = 10, v: number): void => {}): void{
- ~~~~~~~
--!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
--!!! related TS9028 file2.ts:1:26: Add a type annotation to the parameter ip.
+-!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+-!!! related TS9029 file2.ts:1:26: Add a type annotation to the parameter ip.
}
export class Bar2 {
readonly r = 1;
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/moduleAugmentationsImports2.d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/moduleAugmentationsImports2.d.ts.diff
index 1d346fdd68ef1..9268bdb44d011 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/moduleAugmentationsImports2.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/moduleAugmentationsImports2.d.ts.diff
@@ -23,7 +23,7 @@
-
-/// [Errors] ////
-
--e.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.c' with --isolatedDeclarations.
+-e.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'c.d.ts' with --isolatedDeclarations.
-
-
-==== a.ts (0 errors) ====
@@ -55,7 +55,7 @@
- import {A} from "./a";
- import {Cls} from "C";
- ~~~~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.c' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'c.d.ts' with --isolatedDeclarations.
-
- A.prototype.getCls = function () { return undefined; }
-
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesAllowJsImportHelpersCollisions2(module=node16).d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesAllowJsImportHelpersCollisions2(module=node16).d.ts.diff
index b39bc4a18be09..8326201899752 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesAllowJsImportHelpersCollisions2(module=node16).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesAllowJsImportHelpersCollisions2(module=node16).d.ts.diff
@@ -19,7 +19,7 @@
The file is in the program because:
Root file specified for compilation
subfolder/index.ts(2,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
--subfolder/index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-subfolder/index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -33,7 +33,7 @@
~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
- ~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
export * as fs from "fs";
~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesAllowJsImportHelpersCollisions2(module=nodenext).d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesAllowJsImportHelpersCollisions2(module=nodenext).d.ts.diff
index b39bc4a18be09..8326201899752 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesAllowJsImportHelpersCollisions2(module=nodenext).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesAllowJsImportHelpersCollisions2(module=nodenext).d.ts.diff
@@ -19,7 +19,7 @@
The file is in the program because:
Root file specified for compilation
subfolder/index.ts(2,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
--subfolder/index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-subfolder/index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -33,7 +33,7 @@
~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
- ~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
export * as fs from "fs";
~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportAssignments(module=node16).d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportAssignments(module=node16).d.ts.diff
index 7c08d6c1858a3..3d0c5501db3d9 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportAssignments(module=node16).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportAssignments(module=node16).d.ts.diff
@@ -22,9 +22,9 @@
-
-/// [Errors] ////
-
--file.ts(6,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
--index.ts(4,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
--subfolder/index.ts(4,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-file.ts(6,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
+-index.ts(4,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
+-subfolder/index.ts(4,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
-
-
-==== subfolder/index.ts (1 errors) ====
@@ -33,14 +33,14 @@
- fs.readFile;
- export import fs2 = require("fs");
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
-==== index.ts (1 errors) ====
- // esm format file
- import fs = require("fs");
- fs.readFile;
- export import fs2 = require("fs");
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
-==== file.ts (1 errors) ====
- // esm format file
- const __require = null;
@@ -49,7 +49,7 @@
- fs.readFile;
- export import fs2 = require("fs");
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
-==== package.json (0 errors) ====
- {
- "name": "package",
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportAssignments(module=nodenext).d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportAssignments(module=nodenext).d.ts.diff
index 7c08d6c1858a3..3d0c5501db3d9 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportAssignments(module=nodenext).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportAssignments(module=nodenext).d.ts.diff
@@ -22,9 +22,9 @@
-
-/// [Errors] ////
-
--file.ts(6,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
--index.ts(4,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
--subfolder/index.ts(4,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-file.ts(6,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
+-index.ts(4,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
+-subfolder/index.ts(4,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
-
-
-==== subfolder/index.ts (1 errors) ====
@@ -33,14 +33,14 @@
- fs.readFile;
- export import fs2 = require("fs");
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
-==== index.ts (1 errors) ====
- // esm format file
- import fs = require("fs");
- fs.readFile;
- export import fs2 = require("fs");
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
-==== file.ts (1 errors) ====
- // esm format file
- const __require = null;
@@ -49,7 +49,7 @@
- fs.readFile;
- export import fs2 = require("fs");
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
-==== package.json (0 errors) ====
- {
- "name": "package",
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions2(module=node16).d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions2(module=node16).d.ts.diff
index ec08508b877ea..2c35bdffa69ae 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions2(module=node16).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions2(module=node16).d.ts.diff
@@ -20,9 +20,9 @@
/// [Errors] ////
--index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+-index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(2,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
--subfolder/index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-subfolder/index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -33,7 +33,7 @@
~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
- ~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
export * as fs from "fs";
~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -42,7 +42,7 @@
// esm format file
export * from "fs";
- ~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
export * as fs from "fs";
==== package.json (0 errors) ====
{
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions2(module=nodenext).d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions2(module=nodenext).d.ts.diff
index ec08508b877ea..2c35bdffa69ae 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions2(module=nodenext).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions2(module=nodenext).d.ts.diff
@@ -20,9 +20,9 @@
/// [Errors] ////
--index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+-index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(2,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
--subfolder/index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-subfolder/index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -33,7 +33,7 @@
~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
- ~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
export * as fs from "fs";
~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -42,7 +42,7 @@
// esm format file
export * from "fs";
- ~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
export * as fs from "fs";
==== package.json (0 errors) ====
{
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions3(module=node16).d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions3(module=node16).d.ts.diff
index 92053738ffdef..78f00b73ece65 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions3(module=node16).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions3(module=node16).d.ts.diff
@@ -18,8 +18,8 @@
/// [Errors] ////
--index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
--subfolder/index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
+-subfolder/index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -28,7 +28,7 @@
// cjs format file
export {default} from "fs";
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
-==== index.ts (1 errors) ====
@@ -36,7 +36,7 @@
// esm format file
export {default} from "fs";
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
==== package.json (0 errors) ====
{
"name": "package",
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions3(module=nodenext).d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions3(module=nodenext).d.ts.diff
index 92053738ffdef..78f00b73ece65 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions3(module=nodenext).d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/nodeModulesImportHelpersCollisions3(module=nodenext).d.ts.diff
@@ -18,8 +18,8 @@
/// [Errors] ////
--index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
--subfolder/index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
+-subfolder/index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -28,7 +28,7 @@
// cjs format file
export {default} from "fs";
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
-==== index.ts (1 errors) ====
@@ -36,7 +36,7 @@
// esm format file
export {default} from "fs";
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
--!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+-!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
==== package.json (0 errors) ====
{
"name": "package",
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/optionalMethods.d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/optionalMethods.d.ts.diff
index c8cd880b46eaf..58633f997aac9 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/optionalMethods.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/optionalMethods.d.ts.diff
@@ -27,7 +27,7 @@
/// [Errors] ////
optionalMethods.ts(8,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
--optionalMethods.ts(22,17): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+-optionalMethods.ts(22,17): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
optionalMethods.ts(23,5): error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
optionalMethods.ts(27,5): error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
optionalMethods.ts(32,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
@@ -45,9 +45,9 @@
c? = 2;
constructor(public d?: number, public e = 10) {}
- ~~~~~~~~~~~~~~~~~
--!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
--!!! related TS9028 optionalMethods.ts:22:17: Add a type annotation to the parameter d.
+-!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+-!!! related TS9029 optionalMethods.ts:22:17: Add a type annotation to the parameter d.
f() {
~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
- !!! related TS9034 optionalMethods.ts:23:5: Add a return type to the method
+ !!! related TS9035 optionalMethods.ts:23:5: Add a return type to the method
diff --git a/tests/baselines/reference/isolated-declarations/original/diff/typeReferenceDirectives8.d.ts.diff b/tests/baselines/reference/isolated-declarations/original/diff/typeReferenceDirectives8.d.ts.diff
index 7a8a983817b10..692138e6af230 100644
--- a/tests/baselines/reference/isolated-declarations/original/diff/typeReferenceDirectives8.d.ts.diff
+++ b/tests/baselines/reference/isolated-declarations/original/diff/typeReferenceDirectives8.d.ts.diff
@@ -23,7 +23,7 @@
==== /mod2.ts (1 errors) ====
@@ -21,9 +19,7 @@
- !!! related TS9027 /mod2.ts:2:14: Add a type annotation to the variable bar.
+ !!! related TS9028 /mod2.ts:2:14: Add a type annotation to the variable bar.
==== /types/lib/index.d.ts (0 errors) ====
interface Lib { x }
diff --git a/tests/baselines/reference/isolated-declarations/original/dte/computedPropertiesNarrowed.d.ts b/tests/baselines/reference/isolated-declarations/original/dte/computedPropertiesNarrowed.d.ts
index 041a01f01b6d9..fe1195a2864a1 100644
--- a/tests/baselines/reference/isolated-declarations/original/dte/computedPropertiesNarrowed.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/dte/computedPropertiesNarrowed.d.ts
@@ -120,12 +120,12 @@ computedPropertiesNarrowed.ts(47,5): error TS9014: Computed properties must be n
export let o32 = { [1-1]: 1 } // error number
~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:18:12: Add a type annotation to the variable o32.
+!!! related TS9028 computedPropertiesNarrowed.ts:18:12: Add a type annotation to the variable o32.
let u = Symbol();
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:20:5: Add a type annotation to the variable u.
+!!! related TS9028 computedPropertiesNarrowed.ts:20:5: Add a type annotation to the variable u.
export let o4 = {
[u]: 1 // Should error, nut a unique symbol
}
@@ -134,7 +134,7 @@ computedPropertiesNarrowed.ts(47,5): error TS9014: Computed properties must be n
[Symbol()]: 1 // Should error
~~~~~~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:25:12: Add a type annotation to the variable o5.
+!!! related TS9028 computedPropertiesNarrowed.ts:25:12: Add a type annotation to the variable o5.
}
const uu: unique symbol = Symbol();
@@ -148,7 +148,7 @@ computedPropertiesNarrowed.ts(47,5): error TS9014: Computed properties must be n
[foo()]: 1 // Should error
~~~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:36:12: Add a type annotation to the variable o7.
+!!! related TS9028 computedPropertiesNarrowed.ts:36:12: Add a type annotation to the variable o7.
};
let E = { A: 1 } as const
@@ -161,6 +161,6 @@ computedPropertiesNarrowed.ts(47,5): error TS9014: Computed properties must be n
[ns().v]: 1
~~~~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:46:14: Add a type annotation to the variable o9.
+!!! related TS9028 computedPropertiesNarrowed.ts:46:14: Add a type annotation to the variable o9.
}
\ No newline at end of file
diff --git a/tests/baselines/reference/isolated-declarations/original/dte/declarationEmitForModuleImportingModuleAugmentationRetainsImport.d.ts b/tests/baselines/reference/isolated-declarations/original/dte/declarationEmitForModuleImportingModuleAugmentationRetainsImport.d.ts
index b4ea65440d192..53cb17dae1d86 100644
--- a/tests/baselines/reference/isolated-declarations/original/dte/declarationEmitForModuleImportingModuleAugmentationRetainsImport.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/dte/declarationEmitForModuleImportingModuleAugmentationRetainsImport.d.ts
@@ -40,7 +40,7 @@ export declare class ParentThing implements ParentThing {
/// [Errors] ////
child1.ts(9,17): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-parent.ts(1,1): error TS9026: Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.
+parent.ts(1,1): error TS9027: Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.
==== child1.ts (1 errors) ====
@@ -55,14 +55,14 @@ parent.ts(1,1): error TS9026: Declaration emit for this file requires preserving
export function child1(prototype: ParentThing) {
~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 child1.ts:9:17: Add a return type to the function declaration.
+!!! related TS9032 child1.ts:9:17: Add a return type to the function declaration.
prototype.add = (a: number, b: number) => a + b;
}
==== parent.ts (1 errors) ====
import { child1 } from './child1'; // this import should still exist in some form in the output, since it augments this module
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9026: Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.
+!!! error TS9027: Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.
export class ParentThing implements ParentThing {}
diff --git a/tests/baselines/reference/isolated-declarations/original/dte/defaultParameterAddsUndefinedWithStrictNullChecks.d.ts b/tests/baselines/reference/isolated-declarations/original/dte/defaultParameterAddsUndefinedWithStrictNullChecks.d.ts
index 3c7c08d1d00f3..10adab293b023 100644
--- a/tests/baselines/reference/isolated-declarations/original/dte/defaultParameterAddsUndefinedWithStrictNullChecks.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/dte/defaultParameterAddsUndefinedWithStrictNullChecks.d.ts
@@ -98,39 +98,39 @@ defaultParameterAddsUndefinedWithStrictNullChecks.ts(51,28): error TS9011: Param
function f(addUndefined1 = "J", addUndefined2?: number) {
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:1:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:1:10: Add a return type to the function declaration.
return addUndefined1.length + (addUndefined2 || 0);
}
function g(addUndefined = "J", addDefined: number) {
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:4:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:4:10: Add a return type to the function declaration.
return addUndefined.length + addDefined;
}
let total = f() + f('a', 1) + f('b') + f(undefined, 2);
~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 defaultParameterAddsUndefinedWithStrictNullChecks.ts:7:5: Add a type annotation to the variable total.
+!!! related TS9028 defaultParameterAddsUndefinedWithStrictNullChecks.ts:7:5: Add a type annotation to the variable total.
total = g('c', 3) + g(undefined, 4);
function foo1(x: string = "string", b: number) {
~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:10:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:10:10: Add a return type to the function declaration.
x.length;
}
function foo2(x = "string", b: number) {
~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:14:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:14:10: Add a return type to the function declaration.
x.length; // ok, should be string
}
function foo3(x: string | undefined = "string", b: number) {
~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:18:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:18:10: Add a return type to the function declaration.
x.length; // ok, should be string
x = undefined;
}
@@ -138,7 +138,7 @@ defaultParameterAddsUndefinedWithStrictNullChecks.ts(51,28): error TS9011: Param
function foo4(x: string | undefined = undefined, b: number) {
~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:23:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:23:10: Add a return type to the function declaration.
x; // should be string | undefined
x = undefined;
}
@@ -147,7 +147,7 @@ defaultParameterAddsUndefinedWithStrictNullChecks.ts(51,28): error TS9011: Param
function allowsNull(val: OptionalNullableString = "") {
~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:29:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:29:10: Add a return type to the function declaration.
val = null;
val = 'string and null are both ok';
}
@@ -165,7 +165,7 @@ defaultParameterAddsUndefinedWithStrictNullChecks.ts(51,28): error TS9011: Param
function removeUndefinedButNotFalse(x = true) {
~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:44:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:44:10: Add a return type to the function declaration.
if (x === false) {
return x;
}
@@ -175,10 +175,10 @@ defaultParameterAddsUndefinedWithStrictNullChecks.ts(51,28): error TS9011: Param
function removeNothing(y = cond ? true : undefined) {
~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:51:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:51:10: Add a return type to the function declaration.
~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 defaultParameterAddsUndefinedWithStrictNullChecks.ts:51:24: Add a type annotation to the parameter y.
+!!! related TS9029 defaultParameterAddsUndefinedWithStrictNullChecks.ts:51:24: Add a type annotation to the parameter y.
if (y !== undefined) {
if (y === false) {
return y;
diff --git a/tests/baselines/reference/isolated-declarations/original/dte/giant.d.ts b/tests/baselines/reference/isolated-declarations/original/dte/giant.d.ts
index 8695f728c49e1..b6d70d736a44d 100644
--- a/tests/baselines/reference/isolated-declarations/original/dte/giant.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/dte/giant.d.ts
@@ -1805,35 +1805,35 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:272:12: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:272:12: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:273:17: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:273:17: Add a return type to the function declaration.
export class eC {
constructor () { }
public pV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:276:12: Add a type annotation to the property pV.
+!!! related TS9030 giant.ts:276:12: Add a type annotation to the property pV.
private rV;
public pF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:278:12: Add a return type to the method
+!!! related TS9035 giant.ts:278:12: Add a return type to the method
private rF() { }
public pgF() { }
~~~
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:280:12: Add a return type to the method
+!!! related TS9035 giant.ts:280:12: Add a return type to the method
public get pgF()
~~~
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:281:16: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:281:16: Add a return type to the get accessor declaration.
~
!!! error TS1005: '{' expected.
public psF(param:any) { }
@@ -1841,7 +1841,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'psF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:282:12: Add a return type to the method
+!!! related TS9035 giant.ts:282:12: Add a return type to the method
public set psF(param:any)
~~~
!!! error TS2300: Duplicate identifier 'psF'.
@@ -1866,17 +1866,17 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
static tV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:288:12: Add a type annotation to the property tV.
+!!! related TS9030 giant.ts:288:12: Add a type annotation to the property tV.
static tF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:289:12: Add a return type to the method
+!!! related TS9035 giant.ts:289:12: Add a return type to the method
static tsF(param:any) { }
~~~
!!! error TS2300: Duplicate identifier 'tsF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:290:12: Add a return type to the method
+!!! related TS9035 giant.ts:290:12: Add a return type to the method
static set tsF(param:any)
~~~
!!! error TS2300: Duplicate identifier 'tsF'.
@@ -1887,13 +1887,13 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:292:12: Add a return type to the method
+!!! related TS9035 giant.ts:292:12: Add a return type to the method
static get tgF()
~~~
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:293:16: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:293:16: Add a return type to the get accessor declaration.
~
!!! error TS1005: '{' expected.
}
@@ -1904,7 +1904,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
(p);
~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:299:6: Add a type annotation to the parameter p.
+!!! related TS9029 giant.ts:299:6: Add a type annotation to the parameter p.
(p1: string);
(p2?: string);
(...p3: any[]);
@@ -1947,23 +1947,23 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
p6(pa1): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:331:8: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:331:8: Add a type annotation to the parameter pa1.
p7(pa1, pa2): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:332:8: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:332:8: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:332:13: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:332:13: Add a type annotation to the parameter pa2.
p7? (pa1, pa2): void;
~~
!!! error TS2386: Overload signatures must all be optional or required.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:333:10: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:333:10: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:333:15: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:333:15: Add a type annotation to the parameter pa2.
}
export module eM {
var V;
@@ -2096,35 +2096,35 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:415:16: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:415:16: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:416:21: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:416:21: Add a return type to the function declaration.
export class eC {
constructor () { }
public pV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:419:16: Add a type annotation to the property pV.
+!!! related TS9030 giant.ts:419:16: Add a type annotation to the property pV.
private rV;
public pF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:421:16: Add a return type to the method
+!!! related TS9035 giant.ts:421:16: Add a return type to the method
private rF() { }
public pgF() { }
~~~
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:423:16: Add a return type to the method
+!!! related TS9035 giant.ts:423:16: Add a return type to the method
public get pgF()
~~~
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:424:20: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:424:20: Add a return type to the get accessor declaration.
~
!!! error TS1005: '{' expected.
public psF(param:any) { }
@@ -2132,7 +2132,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'psF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:425:16: Add a return type to the method
+!!! related TS9035 giant.ts:425:16: Add a return type to the method
public set psF(param:any)
~~~
!!! error TS2300: Duplicate identifier 'psF'.
@@ -2157,17 +2157,17 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
static tV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:431:16: Add a type annotation to the property tV.
+!!! related TS9030 giant.ts:431:16: Add a type annotation to the property tV.
static tF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:432:16: Add a return type to the method
+!!! related TS9035 giant.ts:432:16: Add a return type to the method
static tsF(param:any) { }
~~~
!!! error TS2300: Duplicate identifier 'tsF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:433:16: Add a return type to the method
+!!! related TS9035 giant.ts:433:16: Add a return type to the method
static set tsF(param:any)
~~~
!!! error TS2300: Duplicate identifier 'tsF'.
@@ -2178,13 +2178,13 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:435:16: Add a return type to the method
+!!! related TS9035 giant.ts:435:16: Add a return type to the method
static get tgF()
~~~
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:436:20: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:436:20: Add a return type to the get accessor declaration.
~
!!! error TS1005: '{' expected.
}
@@ -2195,7 +2195,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
(p);
~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:442:10: Add a type annotation to the parameter p.
+!!! related TS9029 giant.ts:442:10: Add a type annotation to the parameter p.
(p1: string);
(p2?: string);
(...p3: any[]);
@@ -2238,23 +2238,23 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
p6(pa1): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:474:12: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:474:12: Add a type annotation to the parameter pa1.
p7(pa1, pa2): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:475:12: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:475:12: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:475:17: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:475:17: Add a type annotation to the parameter pa2.
p7? (pa1, pa2): void;
~~
!!! error TS2386: Overload signatures must all be optional or required.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:476:14: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:476:14: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:476:19: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:476:19: Add a type annotation to the parameter pa2.
}
export module eM {
var V;
@@ -2265,22 +2265,22 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:484:20: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:484:20: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:485:25: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:485:25: Add a return type to the function declaration.
export class eC { };
export interface eI { };
export module eM { };
export declare var eaV;
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:489:28: Add a type annotation to the variable eaV.
+!!! related TS9028 giant.ts:489:28: Add a type annotation to the variable eaV.
export declare function eaF() { };
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:490:33: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:490:33: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export declare class eaC { };
@@ -2289,11 +2289,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export declare var eaV;
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:494:24: Add a type annotation to the variable eaV.
+!!! related TS9028 giant.ts:494:24: Add a type annotation to the variable eaV.
export declare function eaF() { };
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:495:29: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:495:29: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export declare class eaC {
@@ -2303,12 +2303,12 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
public pV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:498:16: Add a type annotation to the property pV.
+!!! related TS9030 giant.ts:498:16: Add a type annotation to the property pV.
private rV;
public pF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:500:16: Add a return type to the method
+!!! related TS9035 giant.ts:500:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
private rF() { }
@@ -2319,7 +2319,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:502:16: Add a return type to the method
+!!! related TS9035 giant.ts:502:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
public get pgF()
@@ -2327,13 +2327,13 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:503:20: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:503:20: Add a return type to the get accessor declaration.
public psF(param:any) { }
~~~
!!! error TS2300: Duplicate identifier 'psF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:504:16: Add a return type to the method
+!!! related TS9035 giant.ts:504:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
public set psF(param:any)
@@ -2358,11 +2358,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
static tV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:510:16: Add a type annotation to the property tV.
+!!! related TS9030 giant.ts:510:16: Add a type annotation to the property tV.
static tF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:511:16: Add a return type to the method
+!!! related TS9035 giant.ts:511:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static tsF(param:any) { }
@@ -2370,7 +2370,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tsF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:512:16: Add a return type to the method
+!!! related TS9035 giant.ts:512:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static set tsF(param:any)
@@ -2381,7 +2381,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:514:16: Add a return type to the method
+!!! related TS9035 giant.ts:514:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static get tgF()
@@ -2389,17 +2389,17 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:515:20: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:515:20: Add a return type to the get accessor declaration.
}
export declare module eaM {
var V;
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:518:13: Add a type annotation to the variable V.
+!!! related TS9028 giant.ts:518:13: Add a type annotation to the variable V.
function F() { };
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:519:18: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:519:18: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
~
@@ -2410,11 +2410,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:523:20: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:523:20: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:524:25: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:524:25: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export class eC { }
@@ -2425,11 +2425,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export declare var eaV;
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:530:20: Add a type annotation to the variable eaV.
+!!! related TS9028 giant.ts:530:20: Add a type annotation to the variable eaV.
export declare function eaF() { };
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:531:25: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:531:25: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export declare class eaC {
@@ -2439,12 +2439,12 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
public pV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:534:12: Add a type annotation to the property pV.
+!!! related TS9030 giant.ts:534:12: Add a type annotation to the property pV.
private rV;
public pF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:536:12: Add a return type to the method
+!!! related TS9035 giant.ts:536:12: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
private rF() { }
@@ -2455,7 +2455,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:538:12: Add a return type to the method
+!!! related TS9035 giant.ts:538:12: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
public get pgF()
@@ -2463,13 +2463,13 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:539:16: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:539:16: Add a return type to the get accessor declaration.
public psF(param:any) { }
~~~
!!! error TS2300: Duplicate identifier 'psF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:540:12: Add a return type to the method
+!!! related TS9035 giant.ts:540:12: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
public set psF(param:any)
@@ -2494,11 +2494,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
static tV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:546:12: Add a type annotation to the property tV.
+!!! related TS9030 giant.ts:546:12: Add a type annotation to the property tV.
static tF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:547:12: Add a return type to the method
+!!! related TS9035 giant.ts:547:12: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static tsF(param:any) { }
@@ -2506,7 +2506,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tsF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:548:12: Add a return type to the method
+!!! related TS9035 giant.ts:548:12: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static set tsF(param:any)
@@ -2517,7 +2517,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:550:12: Add a return type to the method
+!!! related TS9035 giant.ts:550:12: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static get tgF()
@@ -2525,17 +2525,17 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:551:16: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:551:16: Add a return type to the get accessor declaration.
}
export declare module eaM {
var V;
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:554:9: Add a type annotation to the variable V.
+!!! related TS9028 giant.ts:554:9: Add a type annotation to the variable V.
function F() { };
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:555:14: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:555:14: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
~
@@ -2547,22 +2547,22 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
public pV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:558:16: Add a type annotation to the property pV.
+!!! related TS9030 giant.ts:558:16: Add a type annotation to the property pV.
private rV;
public pF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:560:16: Add a return type to the method
+!!! related TS9035 giant.ts:560:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static tV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:561:16: Add a type annotation to the property tV.
+!!! related TS9030 giant.ts:561:16: Add a type annotation to the property tV.
static tF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:562:16: Add a return type to the method
+!!! related TS9035 giant.ts:562:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
}
@@ -2612,33 +2612,33 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
p6(pa1): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:599:12: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:599:12: Add a type annotation to the parameter pa1.
p7(pa1, pa2): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:600:12: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:600:12: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:600:17: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:600:17: Add a type annotation to the parameter pa2.
p7? (pa1, pa2): void;
~~
!!! error TS2386: Overload signatures must all be optional or required.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:601:14: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:601:14: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:601:19: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:601:19: Add a type annotation to the parameter pa2.
}
module M {
var V;
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:604:13: Add a type annotation to the variable V.
+!!! related TS9028 giant.ts:604:13: Add a type annotation to the variable V.
function F() { };
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:605:18: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:605:18: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
~
@@ -2649,11 +2649,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:609:20: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:609:20: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:610:25: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:610:25: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export class eC { }
@@ -2664,13 +2664,13 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:614:28: Add a type annotation to the variable eaV.
+!!! related TS9028 giant.ts:614:28: Add a type annotation to the variable eaV.
export declare function eaF() { };
~~~~~~~
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:615:33: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:615:33: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export declare class eaC { }
@@ -2683,11 +2683,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:619:16: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:619:16: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:620:21: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:620:21: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export class eC {
@@ -2697,22 +2697,22 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
public pV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:623:16: Add a type annotation to the property pV.
+!!! related TS9030 giant.ts:623:16: Add a type annotation to the property pV.
private rV;
public pF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:625:16: Add a return type to the method
+!!! related TS9035 giant.ts:625:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static tV
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:626:16: Add a type annotation to the property tV.
+!!! related TS9030 giant.ts:626:16: Add a type annotation to the property tV.
static tF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:627:16: Add a return type to the method
+!!! related TS9035 giant.ts:627:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
}
@@ -2723,7 +2723,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
(p);
~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:633:10: Add a type annotation to the parameter p.
+!!! related TS9029 giant.ts:633:10: Add a type annotation to the parameter p.
(p1: string);
(p2?: string);
(...p3: any[]);
@@ -2766,33 +2766,33 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
p6(pa1): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:665:12: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:665:12: Add a type annotation to the parameter pa1.
p7(pa1, pa2): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:666:12: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:666:12: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:666:17: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:666:17: Add a type annotation to the parameter pa2.
p7? (pa1, pa2): void;
~~
!!! error TS2386: Overload signatures must all be optional or required.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:667:14: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:667:14: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:667:19: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:667:19: Add a type annotation to the parameter pa2.
}
export module eM {
var V;
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:670:13: Add a type annotation to the variable V.
+!!! related TS9028 giant.ts:670:13: Add a type annotation to the variable V.
function F() { };
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:671:18: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:671:18: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
~
@@ -2802,11 +2802,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:674:20: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:674:20: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:675:25: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:675:25: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export class eC { }
diff --git a/tests/baselines/reference/isolated-declarations/original/dte/isolatedDeclarationErrorsClasses.d.ts b/tests/baselines/reference/isolated-declarations/original/dte/isolatedDeclarationErrorsClasses.d.ts
index 9490f7ad4421b..8e2ec45c99e61 100644
--- a/tests/baselines/reference/isolated-declarations/original/dte/isolatedDeclarationErrorsClasses.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/dte/isolatedDeclarationErrorsClasses.d.ts
@@ -129,11 +129,11 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS7010: '[noAnnotationLiteralNa
field = 1 + 1;
~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsClasses.ts:3:5: Add a type annotation to the property field.
+!!! related TS9030 isolatedDeclarationErrorsClasses.ts:3:5: Add a type annotation to the property field.
method() {}
~~~~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 isolatedDeclarationErrorsClasses.ts:4:5: Add a return type to the method
+!!! related TS9035 isolatedDeclarationErrorsClasses.ts:4:5: Add a return type to the method
methodOk(): void {}
@@ -142,16 +142,16 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS7010: '[noAnnotationLiteralNa
!!! error TS7006: Parameter 'p' implicitly has an 'any' type.
~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsClasses.ts:8:18: Add a type annotation to the parameter p.
+!!! related TS9029 isolatedDeclarationErrorsClasses.ts:8:18: Add a type annotation to the parameter p.
methodParams2(p = 1 + 1): void {}
~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsClasses.ts:9:19: Add a type annotation to the parameter p.
+!!! related TS9029 isolatedDeclarationErrorsClasses.ts:9:19: Add a type annotation to the parameter p.
get getOnly() { return 0 }
~~~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 isolatedDeclarationErrorsClasses.ts:11:9: Add a return type to the get accessor declaration.
+!!! related TS9033 isolatedDeclarationErrorsClasses.ts:11:9: Add a return type to the get accessor declaration.
set setOnly(value) { }
~~~~~~~
!!! error TS7032: Property 'setOnly' implicitly has type 'any', because its set accessor lacks a parameter type annotation.
@@ -159,13 +159,13 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS7010: '[noAnnotationLiteralNa
!!! error TS7006: Parameter 'value' implicitly has an 'any' type.
~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9033 isolatedDeclarationErrorsClasses.ts:12:9: Add a type to parameter of the set accessor declaration.
+!!! related TS9034 isolatedDeclarationErrorsClasses.ts:12:9: Add a type to parameter of the set accessor declaration.
get getSetBad() { return 0 }
~~~~~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9033 isolatedDeclarationErrorsClasses.ts:15:9: Add a type to parameter of the set accessor declaration.
-!!! related TS9032 isolatedDeclarationErrorsClasses.ts:14:9: Add a return type to the get accessor declaration.
+!!! related TS9034 isolatedDeclarationErrorsClasses.ts:15:9: Add a type to parameter of the set accessor declaration.
+!!! related TS9033 isolatedDeclarationErrorsClasses.ts:14:9: Add a return type to the get accessor declaration.
set getSetBad(value) { }
~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
@@ -210,7 +210,7 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS7010: '[noAnnotationLiteralNa
get [noAnnotationStringName]() { return 0;}
~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 isolatedDeclarationErrorsClasses.ts:46:9: Add a return type to the get accessor declaration.
+!!! related TS9033 isolatedDeclarationErrorsClasses.ts:46:9: Add a return type to the get accessor declaration.
set [noParamAnnotationStringName](value) { }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -219,7 +219,7 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS7010: '[noAnnotationLiteralNa
!!! error TS7006: Parameter 'value' implicitly has an 'any' type.
~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9033 isolatedDeclarationErrorsClasses.ts:48:9: Add a type to parameter of the set accessor declaration.
+!!! related TS9034 isolatedDeclarationErrorsClasses.ts:48:9: Add a type to parameter of the set accessor declaration.
[("A" + "B") as "AB"] = 1;
~~~~~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/isolated-declarations/original/dte/isolatedDeclarationsAddUndefined.d.ts b/tests/baselines/reference/isolated-declarations/original/dte/isolatedDeclarationsAddUndefined.d.ts
index 9a8b4cac9a30e..4311f9ede7ff8 100644
--- a/tests/baselines/reference/isolated-declarations/original/dte/isolatedDeclarationsAddUndefined.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/dte/isolatedDeclarationsAddUndefined.d.ts
@@ -50,7 +50,7 @@ file1.ts(4,11): error TS9012: Property must have an explicit type annotation wit
c3? = 1 as N;
~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 file1.ts:4:5: Add a type annotation to the property c3.
+!!! related TS9030 file1.ts:4:5: Add a type annotation to the property c3.
readonly r = 1;
f = 2;
}
diff --git a/tests/baselines/reference/isolated-declarations/original/dte/optionalMethods.d.ts b/tests/baselines/reference/isolated-declarations/original/dte/optionalMethods.d.ts
index 225f4009f04db..3edfdb43f56bc 100644
--- a/tests/baselines/reference/isolated-declarations/original/dte/optionalMethods.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/dte/optionalMethods.d.ts
@@ -110,7 +110,7 @@ optionalMethods.ts(32,10): error TS9007: Function must have an explicit return t
function test1(x: Foo) {
~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 optionalMethods.ts:8:10: Add a return type to the function declaration.
+!!! related TS9032 optionalMethods.ts:8:10: Add a return type to the function declaration.
x.a;
x.b;
x.f;
@@ -128,14 +128,14 @@ optionalMethods.ts(32,10): error TS9007: Function must have an explicit return t
f() {
~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 optionalMethods.ts:23:5: Add a return type to the method
+!!! related TS9035 optionalMethods.ts:23:5: Add a return type to the method
return 1;
}
g?(): number; // Body of optional method can be omitted
h?() {
~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 optionalMethods.ts:27:5: Add a return type to the method
+!!! related TS9035 optionalMethods.ts:27:5: Add a return type to the method
return 2;
}
}
@@ -143,7 +143,7 @@ optionalMethods.ts(32,10): error TS9007: Function must have an explicit return t
function test2(x: Bar) {
~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 optionalMethods.ts:32:10: Add a return type to the function declaration.
+!!! related TS9032 optionalMethods.ts:32:10: Add a return type to the function declaration.
x.a;
x.b;
x.c;
diff --git a/tests/baselines/reference/isolated-declarations/original/dte/typeReferenceDirectives11.d.ts b/tests/baselines/reference/isolated-declarations/original/dte/typeReferenceDirectives11.d.ts
index 7e6876994c33f..b9df800966558 100644
--- a/tests/baselines/reference/isolated-declarations/original/dte/typeReferenceDirectives11.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/dte/typeReferenceDirectives11.d.ts
@@ -31,7 +31,7 @@ export declare const bar: invalid;
export const bar = foo();
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 /mod2.ts:2:14: Add a type annotation to the variable bar.
+!!! related TS9028 /mod2.ts:2:14: Add a type annotation to the variable bar.
==== /types/lib/index.d.ts (0 errors) ====
interface Lib { x }
diff --git a/tests/baselines/reference/isolated-declarations/original/dte/typeReferenceDirectives8.d.ts b/tests/baselines/reference/isolated-declarations/original/dte/typeReferenceDirectives8.d.ts
index f89b6ae0a36e4..3d6931411e4ab 100644
--- a/tests/baselines/reference/isolated-declarations/original/dte/typeReferenceDirectives8.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/dte/typeReferenceDirectives8.d.ts
@@ -30,7 +30,7 @@ export declare const bar: invalid;
export const bar = foo();
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 /mod2.ts:2:14: Add a type annotation to the variable bar.
+!!! related TS9028 /mod2.ts:2:14: Add a type annotation to the variable bar.
==== /types/lib/index.d.ts (0 errors) ====
interface Lib { x }
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/computedPropertiesNarrowed.d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/computedPropertiesNarrowed.d.ts
index 5cc2df578610c..22b452fca038c 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/computedPropertiesNarrowed.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/computedPropertiesNarrowed.d.ts
@@ -109,7 +109,7 @@ computedPropertiesNarrowed.ts(47,5): error TS9014: Computed properties must be n
[x]: 1 // error narrow type !== declared type
~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:4:12: Add a type annotation to the variable o.
+!!! related TS9028 computedPropertiesNarrowed.ts:4:12: Add a type annotation to the variable o.
}
@@ -125,24 +125,24 @@ computedPropertiesNarrowed.ts(47,5): error TS9014: Computed properties must be n
export let o32 = { [1-1]: 1 } // error number
~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:18:12: Add a type annotation to the variable o32.
+!!! related TS9028 computedPropertiesNarrowed.ts:18:12: Add a type annotation to the variable o32.
let u = Symbol();
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:20:5: Add a type annotation to the variable u.
+!!! related TS9028 computedPropertiesNarrowed.ts:20:5: Add a type annotation to the variable u.
export let o4 = {
[u]: 1 // Should error, nut a unique symbol
~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:21:12: Add a type annotation to the variable o4.
+!!! related TS9028 computedPropertiesNarrowed.ts:21:12: Add a type annotation to the variable o4.
}
export let o5 ={
[Symbol()]: 1 // Should error
~~~~~~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:25:12: Add a type annotation to the variable o5.
+!!! related TS9028 computedPropertiesNarrowed.ts:25:12: Add a type annotation to the variable o5.
}
const uu: unique symbol = Symbol();
@@ -156,7 +156,7 @@ computedPropertiesNarrowed.ts(47,5): error TS9014: Computed properties must be n
[foo()]: 1 // Should error
~~~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:36:12: Add a type annotation to the variable o7.
+!!! related TS9028 computedPropertiesNarrowed.ts:36:12: Add a type annotation to the variable o7.
};
let E = { A: 1 } as const
@@ -169,6 +169,6 @@ computedPropertiesNarrowed.ts(47,5): error TS9014: Computed properties must be n
[ns().v]: 1
~~~~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 computedPropertiesNarrowed.ts:46:14: Add a type annotation to the variable o9.
+!!! related TS9028 computedPropertiesNarrowed.ts:46:14: Add a type annotation to the variable o9.
}
\ No newline at end of file
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/declarationEmitBundleWithAmbientReferences.d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/declarationEmitBundleWithAmbientReferences.d.ts
index b6be744f29bd3..95eb1b5e8be45 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/declarationEmitBundleWithAmbientReferences.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/declarationEmitBundleWithAmbientReferences.d.ts
@@ -35,7 +35,7 @@ export type T = Result;
/// [Errors] ////
-src/datastore_result.ts(1,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './lib/lib' with --isolatedDeclarations.
+src/datastore_result.ts(1,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../lib/lib.d.ts' with --isolatedDeclarations.
==== lib/lib.d.ts (0 errors) ====
@@ -48,7 +48,7 @@ src/datastore_result.ts(1,1): error TS9024: Declaration emit for this expression
==== src/datastore_result.ts (1 errors) ====
import { Result } from "lib/result";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './lib/lib' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../lib/lib.d.ts' with --isolatedDeclarations.
export type T = Result;
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/declarationEmitForModuleImportingModuleAugmentationRetainsImport.d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/declarationEmitForModuleImportingModuleAugmentationRetainsImport.d.ts
index a5c25786127b6..4d9966ab67454 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/declarationEmitForModuleImportingModuleAugmentationRetainsImport.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/declarationEmitForModuleImportingModuleAugmentationRetainsImport.d.ts
@@ -41,7 +41,7 @@ export declare class ParentThing implements ParentThing {
/// [Errors] ////
child1.ts(9,17): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-parent.ts(1,1): error TS9026: Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.
+parent.ts(1,1): error TS9027: Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.
==== child1.ts (1 errors) ====
@@ -56,14 +56,14 @@ parent.ts(1,1): error TS9026: Declaration emit for this file requires preserving
export function child1(prototype: ParentThing) {
~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 child1.ts:9:17: Add a return type to the function declaration.
+!!! related TS9032 child1.ts:9:17: Add a return type to the function declaration.
prototype.add = (a: number, b: number) => a + b;
}
==== parent.ts (1 errors) ====
import { child1 } from './child1'; // this import should still exist in some form in the output, since it augments this module
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9026: Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.
+!!! error TS9027: Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.
export class ParentThing implements ParentThing {}
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/declarationEmitParameterProperty.d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/declarationEmitParameterProperty.d.ts
index 7ddeeccd89201..a41f900989c64 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/declarationEmitParameterProperty.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/declarationEmitParameterProperty.d.ts
@@ -19,15 +19,15 @@ export declare class Foo {
/// [Errors] ////
-declarationEmitParameterProperty.ts(2,15): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+declarationEmitParameterProperty.ts(2,15): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
==== declarationEmitParameterProperty.ts (1 errors) ====
export class Foo {
constructor(public bar?: string) {
~~~~~~~~~~~~~~~~~~~
-!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
-!!! related TS9028 declarationEmitParameterProperty.ts:2:15: Add a type annotation to the parameter bar.
+!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+!!! related TS9029 declarationEmitParameterProperty.ts:2:15: Add a type annotation to the parameter bar.
}
}
\ No newline at end of file
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/defaultParameterAddsUndefinedWithStrictNullChecks.d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/defaultParameterAddsUndefinedWithStrictNullChecks.d.ts
index a1df7d081ad54..3a2893aa6174d 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/defaultParameterAddsUndefinedWithStrictNullChecks.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/defaultParameterAddsUndefinedWithStrictNullChecks.d.ts
@@ -83,12 +83,12 @@ declare function removeNothing(y?: invalid): invalid;
defaultParameterAddsUndefinedWithStrictNullChecks.ts(1,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
defaultParameterAddsUndefinedWithStrictNullChecks.ts(4,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-defaultParameterAddsUndefinedWithStrictNullChecks.ts(4,12): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
-defaultParameterAddsUndefinedWithStrictNullChecks.ts(7,5): error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
+defaultParameterAddsUndefinedWithStrictNullChecks.ts(4,12): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+defaultParameterAddsUndefinedWithStrictNullChecks.ts(7,13): error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
defaultParameterAddsUndefinedWithStrictNullChecks.ts(10,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-defaultParameterAddsUndefinedWithStrictNullChecks.ts(10,15): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+defaultParameterAddsUndefinedWithStrictNullChecks.ts(10,15): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
defaultParameterAddsUndefinedWithStrictNullChecks.ts(14,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-defaultParameterAddsUndefinedWithStrictNullChecks.ts(14,15): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+defaultParameterAddsUndefinedWithStrictNullChecks.ts(14,15): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
defaultParameterAddsUndefinedWithStrictNullChecks.ts(18,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
defaultParameterAddsUndefinedWithStrictNullChecks.ts(23,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
defaultParameterAddsUndefinedWithStrictNullChecks.ts(29,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
@@ -101,48 +101,48 @@ defaultParameterAddsUndefinedWithStrictNullChecks.ts(51,28): error TS9011: Param
function f(addUndefined1 = "J", addUndefined2?: number) {
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:1:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:1:10: Add a return type to the function declaration.
return addUndefined1.length + (addUndefined2 || 0);
}
function g(addUndefined = "J", addDefined: number) {
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:4:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:4:10: Add a return type to the function declaration.
~~~~~~~~~~~~~~~~~~
-!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
-!!! related TS9028 defaultParameterAddsUndefinedWithStrictNullChecks.ts:4:12: Add a type annotation to the parameter addUndefined.
+!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+!!! related TS9029 defaultParameterAddsUndefinedWithStrictNullChecks.ts:4:12: Add a type annotation to the parameter addUndefined.
return addUndefined.length + addDefined;
}
let total = f() + f('a', 1) + f('b') + f(undefined, 2);
~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 defaultParameterAddsUndefinedWithStrictNullChecks.ts:7:5: Add a type annotation to the variable total.
+!!! related TS9028 defaultParameterAddsUndefinedWithStrictNullChecks.ts:7:5: Add a type annotation to the variable total.
total = g('c', 3) + g(undefined, 4);
function foo1(x: string = "string", b: number) {
~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:10:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:10:10: Add a return type to the function declaration.
~~~~~~~~~~~~~~~~~~~~
-!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
-!!! related TS9028 defaultParameterAddsUndefinedWithStrictNullChecks.ts:10:15: Add a type annotation to the parameter x.
+!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+!!! related TS9029 defaultParameterAddsUndefinedWithStrictNullChecks.ts:10:15: Add a type annotation to the parameter x.
x.length;
}
function foo2(x = "string", b: number) {
~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:14:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:14:10: Add a return type to the function declaration.
~~~~~~~~~~~~
-!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
-!!! related TS9028 defaultParameterAddsUndefinedWithStrictNullChecks.ts:14:15: Add a type annotation to the parameter x.
+!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+!!! related TS9029 defaultParameterAddsUndefinedWithStrictNullChecks.ts:14:15: Add a type annotation to the parameter x.
x.length; // ok, should be string
}
function foo3(x: string | undefined = "string", b: number) {
~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:18:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:18:10: Add a return type to the function declaration.
x.length; // ok, should be string
x = undefined;
}
@@ -150,7 +150,7 @@ defaultParameterAddsUndefinedWithStrictNullChecks.ts(51,28): error TS9011: Param
function foo4(x: string | undefined = undefined, b: number) {
~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:23:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:23:10: Add a return type to the function declaration.
x; // should be string | undefined
x = undefined;
}
@@ -159,7 +159,7 @@ defaultParameterAddsUndefinedWithStrictNullChecks.ts(51,28): error TS9011: Param
function allowsNull(val: OptionalNullableString = "") {
~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:29:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:29:10: Add a return type to the function declaration.
val = null;
val = 'string and null are both ok';
}
@@ -177,7 +177,7 @@ defaultParameterAddsUndefinedWithStrictNullChecks.ts(51,28): error TS9011: Param
function removeUndefinedButNotFalse(x = true) {
~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:44:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:44:10: Add a return type to the function declaration.
if (x === false) {
return x;
}
@@ -187,10 +187,10 @@ defaultParameterAddsUndefinedWithStrictNullChecks.ts(51,28): error TS9011: Param
function removeNothing(y = cond ? true : undefined) {
~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 defaultParameterAddsUndefinedWithStrictNullChecks.ts:51:10: Add a return type to the function declaration.
+!!! related TS9032 defaultParameterAddsUndefinedWithStrictNullChecks.ts:51:10: Add a return type to the function declaration.
~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 defaultParameterAddsUndefinedWithStrictNullChecks.ts:51:24: Add a type annotation to the parameter y.
+!!! related TS9029 defaultParameterAddsUndefinedWithStrictNullChecks.ts:51:24: Add a type annotation to the parameter y.
if (y !== undefined) {
if (y === false) {
return y;
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/giant.d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/giant.d.ts
index 5bcce1543b51c..a276b5673d46e 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/giant.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/giant.d.ts
@@ -1801,35 +1801,35 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:272:12: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:272:12: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:273:17: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:273:17: Add a return type to the function declaration.
export class eC {
constructor () { }
public pV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:276:12: Add a type annotation to the property pV.
+!!! related TS9030 giant.ts:276:12: Add a type annotation to the property pV.
private rV;
public pF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:278:12: Add a return type to the method
+!!! related TS9035 giant.ts:278:12: Add a return type to the method
private rF() { }
public pgF() { }
~~~
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:280:12: Add a return type to the method
+!!! related TS9035 giant.ts:280:12: Add a return type to the method
public get pgF()
~~~
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:281:16: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:281:16: Add a return type to the get accessor declaration.
~
!!! error TS1005: '{' expected.
public psF(param:any) { }
@@ -1837,7 +1837,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'psF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:282:12: Add a return type to the method
+!!! related TS9035 giant.ts:282:12: Add a return type to the method
public set psF(param:any)
~~~
!!! error TS2300: Duplicate identifier 'psF'.
@@ -1862,17 +1862,17 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
static tV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:288:12: Add a type annotation to the property tV.
+!!! related TS9030 giant.ts:288:12: Add a type annotation to the property tV.
static tF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:289:12: Add a return type to the method
+!!! related TS9035 giant.ts:289:12: Add a return type to the method
static tsF(param:any) { }
~~~
!!! error TS2300: Duplicate identifier 'tsF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:290:12: Add a return type to the method
+!!! related TS9035 giant.ts:290:12: Add a return type to the method
static set tsF(param:any)
~~~
!!! error TS2300: Duplicate identifier 'tsF'.
@@ -1883,13 +1883,13 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:292:12: Add a return type to the method
+!!! related TS9035 giant.ts:292:12: Add a return type to the method
static get tgF()
~~~
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:293:16: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:293:16: Add a return type to the get accessor declaration.
~
!!! error TS1005: '{' expected.
}
@@ -1900,7 +1900,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
(p);
~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:299:6: Add a type annotation to the parameter p.
+!!! related TS9029 giant.ts:299:6: Add a type annotation to the parameter p.
(p1: string);
(p2?: string);
(...p3: any[]);
@@ -1943,23 +1943,23 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
p6(pa1): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:331:8: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:331:8: Add a type annotation to the parameter pa1.
p7(pa1, pa2): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:332:8: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:332:8: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:332:13: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:332:13: Add a type annotation to the parameter pa2.
p7? (pa1, pa2): void;
~~
!!! error TS2386: Overload signatures must all be optional or required.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:333:10: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:333:10: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:333:15: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:333:15: Add a type annotation to the parameter pa2.
}
export module eM {
var V;
@@ -2092,35 +2092,35 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:415:16: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:415:16: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:416:21: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:416:21: Add a return type to the function declaration.
export class eC {
constructor () { }
public pV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:419:16: Add a type annotation to the property pV.
+!!! related TS9030 giant.ts:419:16: Add a type annotation to the property pV.
private rV;
public pF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:421:16: Add a return type to the method
+!!! related TS9035 giant.ts:421:16: Add a return type to the method
private rF() { }
public pgF() { }
~~~
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:423:16: Add a return type to the method
+!!! related TS9035 giant.ts:423:16: Add a return type to the method
public get pgF()
~~~
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:424:20: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:424:20: Add a return type to the get accessor declaration.
~
!!! error TS1005: '{' expected.
public psF(param:any) { }
@@ -2128,7 +2128,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'psF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:425:16: Add a return type to the method
+!!! related TS9035 giant.ts:425:16: Add a return type to the method
public set psF(param:any)
~~~
!!! error TS2300: Duplicate identifier 'psF'.
@@ -2153,17 +2153,17 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
static tV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:431:16: Add a type annotation to the property tV.
+!!! related TS9030 giant.ts:431:16: Add a type annotation to the property tV.
static tF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:432:16: Add a return type to the method
+!!! related TS9035 giant.ts:432:16: Add a return type to the method
static tsF(param:any) { }
~~~
!!! error TS2300: Duplicate identifier 'tsF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:433:16: Add a return type to the method
+!!! related TS9035 giant.ts:433:16: Add a return type to the method
static set tsF(param:any)
~~~
!!! error TS2300: Duplicate identifier 'tsF'.
@@ -2174,13 +2174,13 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:435:16: Add a return type to the method
+!!! related TS9035 giant.ts:435:16: Add a return type to the method
static get tgF()
~~~
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:436:20: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:436:20: Add a return type to the get accessor declaration.
~
!!! error TS1005: '{' expected.
}
@@ -2191,7 +2191,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
(p);
~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:442:10: Add a type annotation to the parameter p.
+!!! related TS9029 giant.ts:442:10: Add a type annotation to the parameter p.
(p1: string);
(p2?: string);
(...p3: any[]);
@@ -2234,23 +2234,23 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
p6(pa1): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:474:12: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:474:12: Add a type annotation to the parameter pa1.
p7(pa1, pa2): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:475:12: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:475:12: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:475:17: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:475:17: Add a type annotation to the parameter pa2.
p7? (pa1, pa2): void;
~~
!!! error TS2386: Overload signatures must all be optional or required.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:476:14: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:476:14: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:476:19: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:476:19: Add a type annotation to the parameter pa2.
}
export module eM {
var V;
@@ -2261,22 +2261,22 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:484:20: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:484:20: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:485:25: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:485:25: Add a return type to the function declaration.
export class eC { };
export interface eI { };
export module eM { };
export declare var eaV;
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:489:28: Add a type annotation to the variable eaV.
+!!! related TS9028 giant.ts:489:28: Add a type annotation to the variable eaV.
export declare function eaF() { };
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:490:33: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:490:33: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export declare class eaC { };
@@ -2285,11 +2285,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export declare var eaV;
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:494:24: Add a type annotation to the variable eaV.
+!!! related TS9028 giant.ts:494:24: Add a type annotation to the variable eaV.
export declare function eaF() { };
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:495:29: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:495:29: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export declare class eaC {
@@ -2299,12 +2299,12 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
public pV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:498:16: Add a type annotation to the property pV.
+!!! related TS9030 giant.ts:498:16: Add a type annotation to the property pV.
private rV;
public pF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:500:16: Add a return type to the method
+!!! related TS9035 giant.ts:500:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
private rF() { }
@@ -2315,7 +2315,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:502:16: Add a return type to the method
+!!! related TS9035 giant.ts:502:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
public get pgF()
@@ -2323,13 +2323,13 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:503:20: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:503:20: Add a return type to the get accessor declaration.
public psF(param:any) { }
~~~
!!! error TS2300: Duplicate identifier 'psF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:504:16: Add a return type to the method
+!!! related TS9035 giant.ts:504:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
public set psF(param:any)
@@ -2354,11 +2354,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
static tV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:510:16: Add a type annotation to the property tV.
+!!! related TS9030 giant.ts:510:16: Add a type annotation to the property tV.
static tF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:511:16: Add a return type to the method
+!!! related TS9035 giant.ts:511:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static tsF(param:any) { }
@@ -2366,7 +2366,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tsF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:512:16: Add a return type to the method
+!!! related TS9035 giant.ts:512:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static set tsF(param:any)
@@ -2377,7 +2377,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:514:16: Add a return type to the method
+!!! related TS9035 giant.ts:514:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static get tgF()
@@ -2385,17 +2385,17 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:515:20: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:515:20: Add a return type to the get accessor declaration.
}
export declare module eaM {
var V;
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:518:13: Add a type annotation to the variable V.
+!!! related TS9028 giant.ts:518:13: Add a type annotation to the variable V.
function F() { };
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:519:18: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:519:18: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
~
@@ -2406,11 +2406,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:523:20: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:523:20: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:524:25: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:524:25: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export class eC { }
@@ -2421,11 +2421,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export declare var eaV;
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:530:20: Add a type annotation to the variable eaV.
+!!! related TS9028 giant.ts:530:20: Add a type annotation to the variable eaV.
export declare function eaF() { };
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:531:25: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:531:25: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export declare class eaC {
@@ -2435,12 +2435,12 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
public pV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:534:12: Add a type annotation to the property pV.
+!!! related TS9030 giant.ts:534:12: Add a type annotation to the property pV.
private rV;
public pF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:536:12: Add a return type to the method
+!!! related TS9035 giant.ts:536:12: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
private rF() { }
@@ -2451,7 +2451,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:538:12: Add a return type to the method
+!!! related TS9035 giant.ts:538:12: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
public get pgF()
@@ -2459,13 +2459,13 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'pgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:539:16: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:539:16: Add a return type to the get accessor declaration.
public psF(param:any) { }
~~~
!!! error TS2300: Duplicate identifier 'psF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:540:12: Add a return type to the method
+!!! related TS9035 giant.ts:540:12: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
public set psF(param:any)
@@ -2490,11 +2490,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
static tV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:546:12: Add a type annotation to the property tV.
+!!! related TS9030 giant.ts:546:12: Add a type annotation to the property tV.
static tF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:547:12: Add a return type to the method
+!!! related TS9035 giant.ts:547:12: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static tsF(param:any) { }
@@ -2502,7 +2502,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tsF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:548:12: Add a return type to the method
+!!! related TS9035 giant.ts:548:12: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static set tsF(param:any)
@@ -2513,7 +2513,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:550:12: Add a return type to the method
+!!! related TS9035 giant.ts:550:12: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static get tgF()
@@ -2521,17 +2521,17 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS2300: Duplicate identifier 'tgF'.
~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 giant.ts:551:16: Add a return type to the get accessor declaration.
+!!! related TS9033 giant.ts:551:16: Add a return type to the get accessor declaration.
}
export declare module eaM {
var V;
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:554:9: Add a type annotation to the variable V.
+!!! related TS9028 giant.ts:554:9: Add a type annotation to the variable V.
function F() { };
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:555:14: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:555:14: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
~
@@ -2543,22 +2543,22 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
public pV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:558:16: Add a type annotation to the property pV.
+!!! related TS9030 giant.ts:558:16: Add a type annotation to the property pV.
private rV;
public pF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:560:16: Add a return type to the method
+!!! related TS9035 giant.ts:560:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static tV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:561:16: Add a type annotation to the property tV.
+!!! related TS9030 giant.ts:561:16: Add a type annotation to the property tV.
static tF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:562:16: Add a return type to the method
+!!! related TS9035 giant.ts:562:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
}
@@ -2608,33 +2608,33 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
p6(pa1): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:599:12: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:599:12: Add a type annotation to the parameter pa1.
p7(pa1, pa2): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:600:12: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:600:12: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:600:17: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:600:17: Add a type annotation to the parameter pa2.
p7? (pa1, pa2): void;
~~
!!! error TS2386: Overload signatures must all be optional or required.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:601:14: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:601:14: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:601:19: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:601:19: Add a type annotation to the parameter pa2.
}
module M {
var V;
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:604:13: Add a type annotation to the variable V.
+!!! related TS9028 giant.ts:604:13: Add a type annotation to the variable V.
function F() { };
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:605:18: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:605:18: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
~
@@ -2645,11 +2645,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:609:20: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:609:20: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:610:25: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:610:25: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export class eC { }
@@ -2660,13 +2660,13 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:614:28: Add a type annotation to the variable eaV.
+!!! related TS9028 giant.ts:614:28: Add a type annotation to the variable eaV.
export declare function eaF() { };
~~~~~~~
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:615:33: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:615:33: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export declare class eaC { }
@@ -2679,11 +2679,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:619:16: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:619:16: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:620:21: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:620:21: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export class eC {
@@ -2693,22 +2693,22 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
public pV;
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:623:16: Add a type annotation to the property pV.
+!!! related TS9030 giant.ts:623:16: Add a type annotation to the property pV.
private rV;
public pF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:625:16: Add a return type to the method
+!!! related TS9035 giant.ts:625:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
static tV
~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 giant.ts:626:16: Add a type annotation to the property tV.
+!!! related TS9030 giant.ts:626:16: Add a type annotation to the property tV.
static tF() { }
~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 giant.ts:627:16: Add a return type to the method
+!!! related TS9035 giant.ts:627:16: Add a return type to the method
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
}
@@ -2719,7 +2719,7 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
(p);
~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:633:10: Add a type annotation to the parameter p.
+!!! related TS9029 giant.ts:633:10: Add a type annotation to the parameter p.
(p1: string);
(p2?: string);
(...p3: any[]);
@@ -2762,33 +2762,33 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
p6(pa1): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:665:12: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:665:12: Add a type annotation to the parameter pa1.
p7(pa1, pa2): void;
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:666:12: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:666:12: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:666:17: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:666:17: Add a type annotation to the parameter pa2.
p7? (pa1, pa2): void;
~~
!!! error TS2386: Overload signatures must all be optional or required.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:667:14: Add a type annotation to the parameter pa1.
+!!! related TS9029 giant.ts:667:14: Add a type annotation to the parameter pa1.
~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 giant.ts:667:19: Add a type annotation to the parameter pa2.
+!!! related TS9029 giant.ts:667:19: Add a type annotation to the parameter pa2.
}
export module eM {
var V;
~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:670:13: Add a type annotation to the variable V.
+!!! related TS9028 giant.ts:670:13: Add a type annotation to the variable V.
function F() { };
~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:671:18: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:671:18: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
~
@@ -2798,11 +2798,11 @@ giant.ts(675,30): error TS1183: An implementation cannot be declared in ambient
export var eV;
~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 giant.ts:674:20: Add a type annotation to the variable eV.
+!!! related TS9028 giant.ts:674:20: Add a type annotation to the variable eV.
export function eF() { };
~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 giant.ts:675:25: Add a return type to the function declaration.
+!!! related TS9032 giant.ts:675:25: Add a return type to the function declaration.
~
!!! error TS1183: An implementation cannot be declared in ambient contexts.
export class eC { }
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/isolatedDeclarationErrorsClasses.d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/isolatedDeclarationErrorsClasses.d.ts
index 041822fd9a6ea..212333dd7d467 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/isolatedDeclarationErrorsClasses.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/isolatedDeclarationErrorsClasses.d.ts
@@ -125,11 +125,11 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS7010: '[noAnnotationLiteralNa
field = 1 + 1;
~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsClasses.ts:3:5: Add a type annotation to the property field.
+!!! related TS9030 isolatedDeclarationErrorsClasses.ts:3:5: Add a type annotation to the property field.
method() {}
~~~~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 isolatedDeclarationErrorsClasses.ts:4:5: Add a return type to the method
+!!! related TS9035 isolatedDeclarationErrorsClasses.ts:4:5: Add a return type to the method
methodOk(): void {}
@@ -138,16 +138,16 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS7010: '[noAnnotationLiteralNa
!!! error TS7006: Parameter 'p' implicitly has an 'any' type.
~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsClasses.ts:8:18: Add a type annotation to the parameter p.
+!!! related TS9029 isolatedDeclarationErrorsClasses.ts:8:18: Add a type annotation to the parameter p.
methodParams2(p = 1 + 1): void {}
~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsClasses.ts:9:19: Add a type annotation to the parameter p.
+!!! related TS9029 isolatedDeclarationErrorsClasses.ts:9:19: Add a type annotation to the parameter p.
get getOnly() { return 0 }
~~~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 isolatedDeclarationErrorsClasses.ts:11:9: Add a return type to the get accessor declaration.
+!!! related TS9033 isolatedDeclarationErrorsClasses.ts:11:9: Add a return type to the get accessor declaration.
set setOnly(value) { }
~~~~~~~
!!! error TS7032: Property 'setOnly' implicitly has type 'any', because its set accessor lacks a parameter type annotation.
@@ -155,13 +155,13 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS7010: '[noAnnotationLiteralNa
!!! error TS7006: Parameter 'value' implicitly has an 'any' type.
~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9033 isolatedDeclarationErrorsClasses.ts:12:9: Add a type to parameter of the set accessor declaration.
+!!! related TS9034 isolatedDeclarationErrorsClasses.ts:12:9: Add a type to parameter of the set accessor declaration.
get getSetBad() { return 0 }
~~~~~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9033 isolatedDeclarationErrorsClasses.ts:15:9: Add a type to parameter of the set accessor declaration.
-!!! related TS9032 isolatedDeclarationErrorsClasses.ts:14:9: Add a return type to the get accessor declaration.
+!!! related TS9034 isolatedDeclarationErrorsClasses.ts:15:9: Add a type to parameter of the set accessor declaration.
+!!! related TS9033 isolatedDeclarationErrorsClasses.ts:14:9: Add a return type to the get accessor declaration.
set getSetBad(value) { }
~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/isolatedDeclarationsAddUndefined.d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/isolatedDeclarationsAddUndefined.d.ts
index 7c5269a0084bd..a5bd68f3bb355 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/isolatedDeclarationsAddUndefined.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/isolatedDeclarationsAddUndefined.d.ts
@@ -41,7 +41,7 @@ export declare class Bar2 {
/// [Errors] ////
file1.ts(4,11): error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-file2.ts(1,26): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+file2.ts(1,26): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
==== file1.ts (1 errors) ====
@@ -51,7 +51,7 @@ file2.ts(1,26): error TS9025: Declaration emit for this parameter requires impli
c3? = 1 as N;
~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 file1.ts:4:5: Add a type annotation to the property c3.
+!!! related TS9030 file1.ts:4:5: Add a type annotation to the property c3.
readonly r = 1;
f = 2;
}
@@ -59,8 +59,8 @@ file2.ts(1,26): error TS9025: Declaration emit for this parameter requires impli
==== file2.ts (1 errors) ====
export function foo(p = (ip = 10, v: number): void => {}): void{
~~~~~~~
-!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
-!!! related TS9028 file2.ts:1:26: Add a type annotation to the parameter ip.
+!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+!!! related TS9029 file2.ts:1:26: Add a type annotation to the parameter ip.
}
export class Bar2 {
readonly r = 1;
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/moduleAugmentationsImports2.d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/moduleAugmentationsImports2.d.ts
index e870b40593331..8bca8fcfa3de3 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/moduleAugmentationsImports2.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/moduleAugmentationsImports2.d.ts
@@ -83,7 +83,7 @@ import "e";
/// [Errors] ////
-e.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.c' with --isolatedDeclarations.
+e.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'c.d.ts' with --isolatedDeclarations.
==== a.ts (0 errors) ====
@@ -115,7 +115,7 @@ e.ts(2,1): error TS9024: Declaration emit for this expression requires adding a
import {A} from "./a";
import {Cls} from "C";
~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.c' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'c.d.ts' with --isolatedDeclarations.
A.prototype.getCls = function () { return undefined; }
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesAllowJsImportHelpersCollisions2(module=node16).d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesAllowJsImportHelpersCollisions2(module=node16).d.ts
index dc4555c6afb49..2ec1f00fda227 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesAllowJsImportHelpersCollisions2(module=node16).d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesAllowJsImportHelpersCollisions2(module=node16).d.ts
@@ -40,7 +40,7 @@ error TS6504: File 'index.js' is a JavaScript file. Did you mean to enable the '
The file is in the program because:
Root file specified for compilation
subfolder/index.ts(2,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
-subfolder/index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+subfolder/index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -53,7 +53,7 @@ subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper n
~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
export * as fs from "fs";
~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesAllowJsImportHelpersCollisions2(module=nodenext).d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesAllowJsImportHelpersCollisions2(module=nodenext).d.ts
index dc4555c6afb49..2ec1f00fda227 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesAllowJsImportHelpersCollisions2(module=nodenext).d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesAllowJsImportHelpersCollisions2(module=nodenext).d.ts
@@ -40,7 +40,7 @@ error TS6504: File 'index.js' is a JavaScript file. Did you mean to enable the '
The file is in the program because:
Root file specified for compilation
subfolder/index.ts(2,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
-subfolder/index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+subfolder/index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -53,7 +53,7 @@ subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper n
~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
export * as fs from "fs";
~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportAssignments(module=node16).d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportAssignments(module=node16).d.ts
index 1448a913f01c6..cfd919d629e9e 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportAssignments(module=node16).d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportAssignments(module=node16).d.ts
@@ -48,9 +48,9 @@ export import fs2 = require("fs");
/// [Errors] ////
-file.ts(6,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
-index.ts(4,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
-subfolder/index.ts(4,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+file.ts(6,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
+index.ts(4,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
+subfolder/index.ts(4,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
==== subfolder/index.ts (1 errors) ====
@@ -59,14 +59,14 @@ subfolder/index.ts(4,1): error TS9024: Declaration emit for this expression requ
fs.readFile;
export import fs2 = require("fs");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
==== index.ts (1 errors) ====
// esm format file
import fs = require("fs");
fs.readFile;
export import fs2 = require("fs");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
==== file.ts (1 errors) ====
// esm format file
const __require = null;
@@ -75,7 +75,7 @@ subfolder/index.ts(4,1): error TS9024: Declaration emit for this expression requ
fs.readFile;
export import fs2 = require("fs");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
==== package.json (0 errors) ====
{
"name": "package",
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportAssignments(module=nodenext).d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportAssignments(module=nodenext).d.ts
index 1448a913f01c6..cfd919d629e9e 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportAssignments(module=nodenext).d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportAssignments(module=nodenext).d.ts
@@ -48,9 +48,9 @@ export import fs2 = require("fs");
/// [Errors] ////
-file.ts(6,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
-index.ts(4,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
-subfolder/index.ts(4,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+file.ts(6,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
+index.ts(4,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
+subfolder/index.ts(4,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
==== subfolder/index.ts (1 errors) ====
@@ -59,14 +59,14 @@ subfolder/index.ts(4,1): error TS9024: Declaration emit for this expression requ
fs.readFile;
export import fs2 = require("fs");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
==== index.ts (1 errors) ====
// esm format file
import fs = require("fs");
fs.readFile;
export import fs2 = require("fs");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
==== file.ts (1 errors) ====
// esm format file
const __require = null;
@@ -75,7 +75,7 @@ subfolder/index.ts(4,1): error TS9024: Declaration emit for this expression requ
fs.readFile;
export import fs2 = require("fs");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
==== package.json (0 errors) ====
{
"name": "package",
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions2(module=node16).d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions2(module=node16).d.ts
index d5cf5f0b63556..1df1c204fc978 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions2(module=node16).d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions2(module=node16).d.ts
@@ -41,9 +41,9 @@ export * as fs from "fs";
/// [Errors] ////
-index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(2,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
-subfolder/index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+subfolder/index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -53,7 +53,7 @@ subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper n
~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
export * as fs from "fs";
~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -61,7 +61,7 @@ subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper n
// esm format file
export * from "fs";
~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
export * as fs from "fs";
==== package.json (0 errors) ====
{
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions2(module=nodenext).d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions2(module=nodenext).d.ts
index d5cf5f0b63556..1df1c204fc978 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions2(module=nodenext).d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions2(module=nodenext).d.ts
@@ -41,9 +41,9 @@ export * as fs from "fs";
/// [Errors] ////
-index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(2,1): error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
-subfolder/index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+subfolder/index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -53,7 +53,7 @@ subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper n
~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__exportStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
export * as fs from "fs";
~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__importStar' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -61,7 +61,7 @@ subfolder/index.ts(3,1): error TS2343: This syntax requires an imported helper n
// esm format file
export * from "fs";
~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
export * as fs from "fs";
==== package.json (0 errors) ====
{
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions3(module=node16).d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions3(module=node16).d.ts
index e0143813de17a..85cc7bcbc9c5b 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions3(module=node16).d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions3(module=node16).d.ts
@@ -37,8 +37,8 @@ export { default } from "fs";
/// [Errors] ////
-index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
-subfolder/index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
+subfolder/index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -46,14 +46,14 @@ subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper n
// cjs format file
export {default} from "fs";
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
==== index.ts (1 errors) ====
// esm format file
export {default} from "fs";
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
==== package.json (0 errors) ====
{
"name": "package",
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions3(module=nodenext).d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions3(module=nodenext).d.ts
index e0143813de17a..85cc7bcbc9c5b 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions3(module=nodenext).d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/nodeModulesImportHelpersCollisions3(module=nodenext).d.ts
@@ -37,8 +37,8 @@ export { default } from "fs";
/// [Errors] ////
-index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
-subfolder/index.ts(2,1): error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
+subfolder/index.ts(2,1): error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
@@ -46,14 +46,14 @@ subfolder/index.ts(2,9): error TS2343: This syntax requires an imported helper n
// cjs format file
export {default} from "fs";
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to './types' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to '../types.d.ts' with --isolatedDeclarations.
~~~~~~~
!!! error TS2343: This syntax requires an imported helper named '__importDefault' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.
==== index.ts (1 errors) ====
// esm format file
export {default} from "fs";
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-!!! error TS9024: Declaration emit for this expression requires adding a type reference directive to '.types.js' with --isolatedDeclarations.
+!!! error TS9025: Declaration emit for this expression requires adding a path reference directive to 'types.d.ts' with --isolatedDeclarations.
==== package.json (0 errors) ====
{
"name": "package",
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/optionalMethods.d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/optionalMethods.d.ts
index c01d514e47fa2..2d5415c19471a 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/optionalMethods.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/optionalMethods.d.ts
@@ -94,7 +94,7 @@ declare class Derived extends Base {
/// [Errors] ////
optionalMethods.ts(8,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-optionalMethods.ts(22,17): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+optionalMethods.ts(22,17): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
optionalMethods.ts(23,5): error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
optionalMethods.ts(27,5): error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
optionalMethods.ts(32,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
@@ -111,7 +111,7 @@ optionalMethods.ts(32,10): error TS9007: Function must have an explicit return t
function test1(x: Foo) {
~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 optionalMethods.ts:8:10: Add a return type to the function declaration.
+!!! related TS9032 optionalMethods.ts:8:10: Add a return type to the function declaration.
x.a;
x.b;
x.f;
@@ -127,19 +127,19 @@ optionalMethods.ts(32,10): error TS9007: Function must have an explicit return t
c? = 2;
constructor(public d?: number, public e = 10) {}
~~~~~~~~~~~~~~~~~
-!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
-!!! related TS9028 optionalMethods.ts:22:17: Add a type annotation to the parameter d.
+!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+!!! related TS9029 optionalMethods.ts:22:17: Add a type annotation to the parameter d.
f() {
~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 optionalMethods.ts:23:5: Add a return type to the method
+!!! related TS9035 optionalMethods.ts:23:5: Add a return type to the method
return 1;
}
g?(): number; // Body of optional method can be omitted
h?() {
~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 optionalMethods.ts:27:5: Add a return type to the method
+!!! related TS9035 optionalMethods.ts:27:5: Add a return type to the method
return 2;
}
}
@@ -147,7 +147,7 @@ optionalMethods.ts(32,10): error TS9007: Function must have an explicit return t
function test2(x: Bar) {
~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 optionalMethods.ts:32:10: Add a return type to the function declaration.
+!!! related TS9032 optionalMethods.ts:32:10: Add a return type to the function declaration.
x.a;
x.b;
x.c;
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/typeReferenceDirectives11.d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/typeReferenceDirectives11.d.ts
index 7c4a861b97611..786a90378baf2 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/typeReferenceDirectives11.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/typeReferenceDirectives11.d.ts
@@ -33,7 +33,7 @@ export declare const bar: invalid;
export const bar = foo();
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 /mod2.ts:2:14: Add a type annotation to the variable bar.
+!!! related TS9028 /mod2.ts:2:14: Add a type annotation to the variable bar.
==== /types/lib/index.d.ts (0 errors) ====
interface Lib { x }
diff --git a/tests/baselines/reference/isolated-declarations/original/tsc/typeReferenceDirectives8.d.ts b/tests/baselines/reference/isolated-declarations/original/tsc/typeReferenceDirectives8.d.ts
index 9f480bad3c556..3ad058388635e 100644
--- a/tests/baselines/reference/isolated-declarations/original/tsc/typeReferenceDirectives8.d.ts
+++ b/tests/baselines/reference/isolated-declarations/original/tsc/typeReferenceDirectives8.d.ts
@@ -32,7 +32,7 @@ export declare const bar: invalid;
export const bar = foo();
~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 /mod2.ts:2:14: Add a type annotation to the variable bar.
+!!! related TS9028 /mod2.ts:2:14: Add a type annotation to the variable bar.
==== /types/lib/index.d.ts (0 errors) ====
interface Lib { x }
diff --git a/tests/baselines/reference/isolatedDeclarationErrorsClasses.errors.txt b/tests/baselines/reference/isolatedDeclarationErrorsClasses.errors.txt
index a8a383fde1216..7e038f0584a92 100644
--- a/tests/baselines/reference/isolatedDeclarationErrorsClasses.errors.txt
+++ b/tests/baselines/reference/isolatedDeclarationErrorsClasses.errors.txt
@@ -29,11 +29,11 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS7010: '[noAnnotationLiteralNa
field = 1 + 1;
~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsClasses.ts:3:5: Add a type annotation to the property field.
+!!! related TS9030 isolatedDeclarationErrorsClasses.ts:3:5: Add a type annotation to the property field.
method() {}
~~~~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9034 isolatedDeclarationErrorsClasses.ts:4:5: Add a return type to the method
+!!! related TS9035 isolatedDeclarationErrorsClasses.ts:4:5: Add a return type to the method
methodOk(): void {}
@@ -42,16 +42,16 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS7010: '[noAnnotationLiteralNa
!!! error TS7006: Parameter 'p' implicitly has an 'any' type.
~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsClasses.ts:8:18: Add a type annotation to the parameter p.
+!!! related TS9029 isolatedDeclarationErrorsClasses.ts:8:18: Add a type annotation to the parameter p.
methodParams2(p = 1 + 1): void {}
~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsClasses.ts:9:19: Add a type annotation to the parameter p.
+!!! related TS9029 isolatedDeclarationErrorsClasses.ts:9:19: Add a type annotation to the parameter p.
get getOnly() { return 0 }
~~~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 isolatedDeclarationErrorsClasses.ts:11:9: Add a return type to the get accessor declaration.
+!!! related TS9033 isolatedDeclarationErrorsClasses.ts:11:9: Add a return type to the get accessor declaration.
set setOnly(value) { }
~~~~~~~
!!! error TS7032: Property 'setOnly' implicitly has type 'any', because its set accessor lacks a parameter type annotation.
@@ -59,13 +59,13 @@ isolatedDeclarationErrorsClasses.ts(56,5): error TS7010: '[noAnnotationLiteralNa
!!! error TS7006: Parameter 'value' implicitly has an 'any' type.
~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9033 isolatedDeclarationErrorsClasses.ts:12:9: Add a type to parameter of the set accessor declaration.
+!!! related TS9034 isolatedDeclarationErrorsClasses.ts:12:9: Add a type to parameter of the set accessor declaration.
get getSetBad() { return 0 }
~~~~~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9033 isolatedDeclarationErrorsClasses.ts:15:9: Add a type to parameter of the set accessor declaration.
-!!! related TS9032 isolatedDeclarationErrorsClasses.ts:14:9: Add a return type to the get accessor declaration.
+!!! related TS9034 isolatedDeclarationErrorsClasses.ts:15:9: Add a type to parameter of the set accessor declaration.
+!!! related TS9033 isolatedDeclarationErrorsClasses.ts:14:9: Add a return type to the get accessor declaration.
set getSetBad(value) { }
~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
diff --git a/tests/baselines/reference/isolatedDeclarationErrorsDefault.errors.txt b/tests/baselines/reference/isolatedDeclarationErrorsDefault.errors.txt
index 4169640f60a21..49a18926d32d9 100644
--- a/tests/baselines/reference/isolatedDeclarationErrorsDefault.errors.txt
+++ b/tests/baselines/reference/isolatedDeclarationErrorsDefault.errors.txt
@@ -1,4 +1,4 @@
-a.ts(1,16): error TS9037: Default exports can't be inferred with --isolatedDeclarations.
+a.ts(1,16): error TS9038: Default exports can't be inferred with --isolatedDeclarations.
b.ts(1,23): error TS9013: Expression type can't be inferred with --isolatedDeclarations.
c.ts(1,16): error TS9017: Only const arrays can be inferred with --isolatedDeclarations.
d.ts(1,24): error TS9013: Expression type can't be inferred with --isolatedDeclarations.
@@ -8,36 +8,36 @@ e.ts(1,24): error TS9013: Expression type can't be inferred with --isolatedDecla
==== a.ts (1 errors) ====
export default 1 + 1;
~~~~~
-!!! error TS9037: Default exports can't be inferred with --isolatedDeclarations.
-!!! related TS9036 a.ts:1:1: Move the expression in default export to a variable and add a type annotation to it.
+!!! error TS9038: Default exports can't be inferred with --isolatedDeclarations.
+!!! related TS9037 a.ts:1:1: Move the expression in default export to a variable and add a type annotation to it.
==== b.ts (1 errors) ====
export default { foo: 1 + 1 };
~~~~~
!!! error TS9013: Expression type can't be inferred with --isolatedDeclarations.
-!!! related TS9036 b.ts:1:1: Move the expression in default export to a variable and add a type annotation to it.
-!!! related TS9035 b.ts:1:23: Add a type assertion to this expression to make type type explicit.
+!!! related TS9037 b.ts:1:1: Move the expression in default export to a variable and add a type annotation to it.
+!!! related TS9036 b.ts:1:23: Add a type assertion to this expression to make type type explicit.
==== c.ts (1 errors) ====
export default [{ foo: 1 + 1 }];
~~~~~~~~~~~~~~~~
!!! error TS9017: Only const arrays can be inferred with --isolatedDeclarations.
-!!! related TS9036 c.ts:1:1: Move the expression in default export to a variable and add a type annotation to it.
+!!! related TS9037 c.ts:1:1: Move the expression in default export to a variable and add a type annotation to it.
==== d.ts (1 errors) ====
export default [{ foo: 1 + 1 }] as const;
~~~~~
!!! error TS9013: Expression type can't be inferred with --isolatedDeclarations.
-!!! related TS9036 d.ts:1:1: Move the expression in default export to a variable and add a type annotation to it.
-!!! related TS9035 d.ts:1:24: Add a type assertion to this expression to make type type explicit.
+!!! related TS9037 d.ts:1:1: Move the expression in default export to a variable and add a type annotation to it.
+!!! related TS9036 d.ts:1:24: Add a type assertion to this expression to make type type explicit.
==== e.ts (1 errors) ====
export default [{ foo: 1 + 1 }] as const;
~~~~~
!!! error TS9013: Expression type can't be inferred with --isolatedDeclarations.
-!!! related TS9036 e.ts:1:1: Move the expression in default export to a variable and add a type annotation to it.
-!!! related TS9035 e.ts:1:24: Add a type assertion to this expression to make type type explicit.
+!!! related TS9037 e.ts:1:1: Move the expression in default export to a variable and add a type annotation to it.
+!!! related TS9036 e.ts:1:24: Add a type assertion to this expression to make type type explicit.
==== f.ts (0 errors) ====
const a = { foo: 1 };
diff --git a/tests/baselines/reference/isolatedDeclarationErrorsExpandoFunctions.errors.txt b/tests/baselines/reference/isolatedDeclarationErrorsExpandoFunctions.errors.txt
index adc2ffbf0df9a..de7900ee39a21 100644
--- a/tests/baselines/reference/isolatedDeclarationErrorsExpandoFunctions.errors.txt
+++ b/tests/baselines/reference/isolatedDeclarationErrorsExpandoFunctions.errors.txt
@@ -11,7 +11,7 @@ isolatedDeclarationErrorsExpandoFunctions.ts(8,1): error TS9023: Assigning prope
export function foo() {}
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 isolatedDeclarationErrorsExpandoFunctions.ts:1:17: Add a return type to the function declaration.
+!!! related TS9032 isolatedDeclarationErrorsExpandoFunctions.ts:1:17: Add a return type to the function declaration.
foo.apply = () => {}
~~~~~~~~~
diff --git a/tests/baselines/reference/isolatedDeclarationErrorsExpressions.errors.txt b/tests/baselines/reference/isolatedDeclarationErrorsExpressions.errors.txt
index 9d4fc13043da6..966ca188b5be9 100644
--- a/tests/baselines/reference/isolatedDeclarationErrorsExpressions.errors.txt
+++ b/tests/baselines/reference/isolatedDeclarationErrorsExpressions.errors.txt
@@ -58,35 +58,35 @@ isolatedDeclarationErrorsExpressions.ts(128,19): error TS9019: Binding elements
export const numberConstBad1 = 1 + 1;
~~~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:3:14: Add a type annotation to the variable numberConstBad1.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:3:14: Add a type annotation to the variable numberConstBad1.
export const numberConstBad2 = Math.random();
~~~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:4:14: Add a type annotation to the variable numberConstBad2.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:4:14: Add a type annotation to the variable numberConstBad2.
export const numberConstBad3 = numberConst;
~~~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:5:14: Add a type annotation to the variable numberConstBad3.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:5:14: Add a type annotation to the variable numberConstBad3.
export const bigIntConst = 1n;
export const bigIntConstBad1 = 1n + 1n;
~~~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:8:14: Add a type annotation to the variable bigIntConstBad1.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:8:14: Add a type annotation to the variable bigIntConstBad1.
export const bigIntConstBad2 = time();
~~~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:9:14: Add a type annotation to the variable bigIntConstBad2.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:9:14: Add a type annotation to the variable bigIntConstBad2.
export const bigIntConstBad3 = bigIntConst;
~~~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:10:14: Add a type annotation to the variable bigIntConstBad3.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:10:14: Add a type annotation to the variable bigIntConstBad3.
export const stringConst = "s";
export const stringConstBad = "s" + "s";
~~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:13:14: Add a type annotation to the variable stringConstBad.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:13:14: Add a type annotation to the variable stringConstBad.
// These are just strings
export const templateConstOk1 = `s`;
@@ -111,35 +111,35 @@ isolatedDeclarationErrorsExpressions.ts(128,19): error TS9019: Binding elements
export let numberLetBad1 = 1 + 1;
~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:23:12: Add a type annotation to the variable numberLetBad1.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:23:12: Add a type annotation to the variable numberLetBad1.
export let numberLetBad2 = Math.random();
~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:24:12: Add a type annotation to the variable numberLetBad2.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:24:12: Add a type annotation to the variable numberLetBad2.
export let numberLetBad3 = numberLet;
~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:25:12: Add a type annotation to the variable numberLetBad3.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:25:12: Add a type annotation to the variable numberLetBad3.
export let bigIntLet = 1n;
export let bigIntLetBad1 = 1n + 1n;
~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:28:12: Add a type annotation to the variable bigIntLetBad1.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:28:12: Add a type annotation to the variable bigIntLetBad1.
export let bigIntLetBad2 = time();
~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:29:12: Add a type annotation to the variable bigIntLetBad2.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:29:12: Add a type annotation to the variable bigIntLetBad2.
export let bigIntLetBad3 = bigIntLet;
~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:30:12: Add a type annotation to the variable bigIntLetBad3.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:30:12: Add a type annotation to the variable bigIntLetBad3.
export let stringLet = "s";
export let stringLetBad = "s" + "s";
~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:33:12: Add a type annotation to the variable stringLetBad.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:33:12: Add a type annotation to the variable stringLetBad.
export let templateLetOk1 = `s`;
export let templateLetOk2 = `s${1} - ${"S"}`;
@@ -158,60 +158,60 @@ isolatedDeclarationErrorsExpressions.ts(128,19): error TS9019: Binding elements
export let templateLetOk2AsConst = `s${1} - ${"S"}` as const;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:49:12: Add a type annotation to the variable templateLetOk2AsConst.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:49:12: Add a type annotation to the variable templateLetOk2AsConst.
export let templateLetOk3AsConst = `s${1} - ${"S"} - ${false}` as const;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:50:12: Add a type annotation to the variable templateLetOk3AsConst.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:50:12: Add a type annotation to the variable templateLetOk3AsConst.
export let templateLetOk4AsConst = `s${1 + 1} - ${"S"} - ${!false}` as const;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:51:12: Add a type annotation to the variable templateLetOk4AsConst.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:51:12: Add a type annotation to the variable templateLetOk4AsConst.
export let arr = [1, 2, 3];
~~~~~~~~~
!!! error TS9017: Only const arrays can be inferred with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:53:12: Add a type annotation to the variable arr.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:53:12: Add a type annotation to the variable arr.
export let arrConst = [1, 2, 3] as const;
export let arrWithSpread = [1, 2, 3, ...arr] as const;
~~~~~~
!!! error TS9018: Arrays with spread elements can't inferred with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsExpressions.ts:55:12: Add a type annotation to the variable arrWithSpread.
+!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:55:12: Add a type annotation to the variable arrWithSpread.
export class Exported {
public numberLet = 1;
public numberLetBad1 = 1 + 1;
~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:59:12: Add a type annotation to the property numberLetBad1.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:59:12: Add a type annotation to the property numberLetBad1.
public numberLetBad2 = Math.random();
~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:60:12: Add a type annotation to the property numberLetBad2.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:60:12: Add a type annotation to the property numberLetBad2.
public numberLetBad3 = numberLet;
~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:61:12: Add a type annotation to the property numberLetBad3.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:61:12: Add a type annotation to the property numberLetBad3.
public bigIntLet = 1n;
public bigIntLetBad1 = 1n + 1n;
~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:64:12: Add a type annotation to the property bigIntLetBad1.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:64:12: Add a type annotation to the property bigIntLetBad1.
public bigIntLetBad2 = time();
~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:65:12: Add a type annotation to the property bigIntLetBad2.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:65:12: Add a type annotation to the property bigIntLetBad2.
public bigIntLetBad3 = bigIntLet;
~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:66:12: Add a type annotation to the property bigIntLetBad3.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:66:12: Add a type annotation to the property bigIntLetBad3.
public stringLet = "s";
public stringLetBad = "s" + "s";
~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:69:12: Add a type annotation to the property stringLetBad.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:69:12: Add a type annotation to the property stringLetBad.
public templateLetOk1 = `s`;
public templateLetOk2 = `s${1} - ${"S"}`;
@@ -223,35 +223,35 @@ isolatedDeclarationErrorsExpressions.ts(128,19): error TS9019: Binding elements
readonly numberConstBad1 = 1 + 1;
~~~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:78:14: Add a type annotation to the property numberConstBad1.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:78:14: Add a type annotation to the property numberConstBad1.
readonly numberConstBad2 = Math.random();
~~~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:79:14: Add a type annotation to the property numberConstBad2.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:79:14: Add a type annotation to the property numberConstBad2.
readonly numberConstBad3 = numberConst;
~~~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:80:14: Add a type annotation to the property numberConstBad3.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:80:14: Add a type annotation to the property numberConstBad3.
readonly bigIntConst = 1n;
readonly bigIntConstBad1 = 1n + 1n;
~~~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:83:14: Add a type annotation to the property bigIntConstBad1.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:83:14: Add a type annotation to the property bigIntConstBad1.
readonly bigIntConstBad2 = time();
~~~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:84:14: Add a type annotation to the property bigIntConstBad2.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:84:14: Add a type annotation to the property bigIntConstBad2.
readonly bigIntConstBad3 = bigIntConst;
~~~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:85:14: Add a type annotation to the property bigIntConstBad3.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:85:14: Add a type annotation to the property bigIntConstBad3.
readonly stringConst = "s";
readonly stringConstBad = "s" + "s";
~~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:88:14: Add a type annotation to the property stringConstBad.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:88:14: Add a type annotation to the property stringConstBad.
readonly templateConstOk1 = `s`;
readonly templateConstNotOk2 = `s${1} - ${"S"}`;
@@ -277,15 +277,15 @@ isolatedDeclarationErrorsExpressions.ts(128,19): error TS9019: Binding elements
templateLetOk2AsConst = `s${1} - ${"S"}` as const;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:102:5: Add a type annotation to the property templateLetOk2AsConst.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:102:5: Add a type annotation to the property templateLetOk2AsConst.
templateLetOk3AsConst = `s${1} - ${"S"} - ${false}` as const;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:103:5: Add a type annotation to the property templateLetOk3AsConst.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:103:5: Add a type annotation to the property templateLetOk3AsConst.
templateLetOk4AsConst = `s${1 + 1} - ${"S"} - ${!false}` as const;
~~~~~~~~~~~~~~~~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:104:5: Add a type annotation to the property templateLetOk4AsConst.
+!!! related TS9030 isolatedDeclarationErrorsExpressions.ts:104:5: Add a type annotation to the property templateLetOk4AsConst.
}
@@ -293,35 +293,53 @@ isolatedDeclarationErrorsExpressions.ts(128,19): error TS9019: Binding elements
export function numberParamBad1(p = 1 + 1): void { }
~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
+<<<<<<< HEAD
!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:109:33: Add a type annotation to the parameter p.
export function numberParamBad2(p = Math.random()): void { }
~~~~~~~~~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:110:33: Add a type annotation to the parameter p.
export function numberParamBad3(p = numberParam): void { }
+=======
+!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:109:33: Add a type annotation to the parameter p.
+ export function numberParamBad2(p = Math.random()): void { };
+ ~~~~~~~~~~~~~
+!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
+!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:110:33: Add a type annotation to the parameter p.
+ export function numberParamBad3(p = numberParam): void { };
+>>>>>>> b81303e0b5 (Shift diagnostic messages and update references)
~~~~~~~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:111:33: Add a type annotation to the parameter p.
+!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:111:33: Add a type annotation to the parameter p.
export function bigIntParam(p = 1n): void { }
export function bigIntParamBad1(p = 1n + 1n): void { }
~~~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
+<<<<<<< HEAD
!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:114:33: Add a type annotation to the parameter p.
export function bigIntParamBad2(p = time()): void { }
~~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:115:33: Add a type annotation to the parameter p.
export function bigIntParamBad3(p = bigIntParam): void { }
+=======
+!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:114:33: Add a type annotation to the parameter p.
+ export function bigIntParamBad2(p = time()): void { };
+ ~~~~~~
+!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
+!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:115:33: Add a type annotation to the parameter p.
+ export function bigIntParamBad3(p = bigIntParam): void { };
+>>>>>>> b81303e0b5 (Shift diagnostic messages and update references)
~~~~~~~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:116:33: Add a type annotation to the parameter p.
+!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:116:33: Add a type annotation to the parameter p.
export function stringParam(p = "s"): void { }
export function stringParamBad(p = "s" + "s"): void { }
~~~~~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsExpressions.ts:119:32: Add a type annotation to the parameter p.
+!!! related TS9029 isolatedDeclarationErrorsExpressions.ts:119:32: Add a type annotation to the parameter p.
export function templateParamOk1(p = `s`): void { }
export function templateParamOk2(p = `s${1} - ${"S"}`): void { }
diff --git a/tests/baselines/reference/isolatedDeclarationErrorsFunctionDeclarations.errors.txt b/tests/baselines/reference/isolatedDeclarationErrorsFunctionDeclarations.errors.txt
index 833cae006ab9d..13e92234fb2da 100644
--- a/tests/baselines/reference/isolatedDeclarationErrorsFunctionDeclarations.errors.txt
+++ b/tests/baselines/reference/isolatedDeclarationErrorsFunctionDeclarations.errors.txt
@@ -10,31 +10,31 @@ isolatedDeclarationErrorsFunctionDeclarations.ts(9,55): error TS9013: Expression
export function noReturn() {}
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 isolatedDeclarationErrorsFunctionDeclarations.ts:1:17: Add a return type to the function declaration.
+!!! related TS9032 isolatedDeclarationErrorsFunctionDeclarations.ts:1:17: Add a return type to the function declaration.
export function noParamAnnotation(p): void {}
~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsFunctionDeclarations.ts:3:35: Add a type annotation to the parameter p.
+!!! related TS9029 isolatedDeclarationErrorsFunctionDeclarations.ts:3:35: Add a type annotation to the parameter p.
export function noParamAnnotationDefault(p = 1): void {}
export function noParamAnnotationBadDefault(p = 1 + 1, p2 = { a: 1 + 1 }, p3 = [1 + 1] as const): void {}
~~~~~
!!! error TS9011: Parameter must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsFunctionDeclarations.ts:7:45: Add a type annotation to the parameter p.
+!!! related TS9029 isolatedDeclarationErrorsFunctionDeclarations.ts:7:45: Add a type annotation to the parameter p.
~~~~~
!!! error TS9013: Expression type can't be inferred with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsFunctionDeclarations.ts:7:56: Add a type annotation to the parameter p2.
-!!! related TS9035 isolatedDeclarationErrorsFunctionDeclarations.ts:7:66: Add a type assertion to this expression to make type type explicit.
+!!! related TS9029 isolatedDeclarationErrorsFunctionDeclarations.ts:7:56: Add a type annotation to the parameter p2.
+!!! related TS9036 isolatedDeclarationErrorsFunctionDeclarations.ts:7:66: Add a type assertion to this expression to make type type explicit.
~~~~~
!!! error TS9013: Expression type can't be inferred with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsFunctionDeclarations.ts:7:75: Add a type annotation to the parameter p3.
-!!! related TS9035 isolatedDeclarationErrorsFunctionDeclarations.ts:7:81: Add a type assertion to this expression to make type type explicit.
+!!! related TS9029 isolatedDeclarationErrorsFunctionDeclarations.ts:7:75: Add a type annotation to the parameter p3.
+!!! related TS9036 isolatedDeclarationErrorsFunctionDeclarations.ts:7:81: Add a type assertion to this expression to make type type explicit.
export function noParamAnnotationBadDefault2(p = { a: 1 + 1 }): void {}
~~~~~
!!! error TS9013: Expression type can't be inferred with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsFunctionDeclarations.ts:9:46: Add a type annotation to the parameter p.
-!!! related TS9035 isolatedDeclarationErrorsFunctionDeclarations.ts:9:55: Add a type assertion to this expression to make type type explicit.
+!!! related TS9029 isolatedDeclarationErrorsFunctionDeclarations.ts:9:46: Add a type annotation to the parameter p.
+!!! related TS9036 isolatedDeclarationErrorsFunctionDeclarations.ts:9:55: Add a type assertion to this expression to make type type explicit.
\ No newline at end of file
diff --git a/tests/baselines/reference/isolatedDeclarationErrorsObjects.errors.txt b/tests/baselines/reference/isolatedDeclarationErrorsObjects.errors.txt
index 5f4df8c670a57..ff8aa8be6f67e 100644
--- a/tests/baselines/reference/isolatedDeclarationErrorsObjects.errors.txt
+++ b/tests/baselines/reference/isolatedDeclarationErrorsObjects.errors.txt
@@ -28,8 +28,8 @@ isolatedDeclarationErrorsObjects.ts(84,9): error TS9015: Objects that contain sp
a: Math.random(),
~~~~~~~~~~~~~
!!! error TS9013: Expression type can't be inferred with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:6:12: Add a type annotation to the variable oBad.
-!!! related TS9035 isolatedDeclarationErrorsObjects.ts:7:8: Add a type assertion to this expression to make type type explicit.
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:6:12: Add a type annotation to the variable oBad.
+!!! related TS9036 isolatedDeclarationErrorsObjects.ts:7:8: Add a type assertion to this expression to make type type explicit.
}
export const V = 1;
export let oBad2 = {
@@ -37,16 +37,16 @@ isolatedDeclarationErrorsObjects.ts(84,9): error TS9015: Objects that contain sp
b: Math.random(),
~~~~~~~~~~~~~
!!! error TS9013: Expression type can't be inferred with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:10:12: Add a type annotation to the variable oBad2.
-!!! related TS9035 isolatedDeclarationErrorsObjects.ts:12:12: Add a type assertion to this expression to make type type explicit.
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:10:12: Add a type annotation to the variable oBad2.
+!!! related TS9036 isolatedDeclarationErrorsObjects.ts:12:12: Add a type assertion to this expression to make type type explicit.
},
c: {
d: 1,
e: V,
~
!!! error TS9013: Expression type can't be inferred with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:10:12: Add a type annotation to the variable oBad2.
-!!! related TS9035 isolatedDeclarationErrorsObjects.ts:16:12: Add a type assertion to this expression to make type type explicit.
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:10:12: Add a type annotation to the variable oBad2.
+!!! related TS9036 isolatedDeclarationErrorsObjects.ts:16:12: Add a type assertion to this expression to make type type explicit.
}
}
@@ -54,35 +54,35 @@ isolatedDeclarationErrorsObjects.ts(84,9): error TS9015: Objects that contain sp
method() { },
~~~~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:20:12: Add a type annotation to the variable oWithMethods.
-!!! related TS9034 isolatedDeclarationErrorsObjects.ts:21:5: Add a return type to the method
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:20:12: Add a type annotation to the variable oWithMethods.
+!!! related TS9035 isolatedDeclarationErrorsObjects.ts:21:5: Add a return type to the method
okMethod(): void { },
a: 1,
bad() { },
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:20:12: Add a type annotation to the variable oWithMethods.
-!!! related TS9034 isolatedDeclarationErrorsObjects.ts:24:5: Add a return type to the method
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:20:12: Add a type annotation to the variable oWithMethods.
+!!! related TS9035 isolatedDeclarationErrorsObjects.ts:24:5: Add a return type to the method
e: V,
~
!!! error TS9013: Expression type can't be inferred with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:20:12: Add a type annotation to the variable oWithMethods.
-!!! related TS9035 isolatedDeclarationErrorsObjects.ts:25:8: Add a type assertion to this expression to make type type explicit.
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:20:12: Add a type annotation to the variable oWithMethods.
+!!! related TS9036 isolatedDeclarationErrorsObjects.ts:25:8: Add a type assertion to this expression to make type type explicit.
}
export let oWithMethodsNested = {
foo: {
method() { },
~~~~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:27:12: Add a type annotation to the variable oWithMethodsNested.
-!!! related TS9034 isolatedDeclarationErrorsObjects.ts:29:9: Add a return type to the method
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:27:12: Add a type annotation to the variable oWithMethodsNested.
+!!! related TS9035 isolatedDeclarationErrorsObjects.ts:29:9: Add a return type to the method
a: 1,
okMethod(): void { },
bad() { }
~~~
!!! error TS9008: Method must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:27:12: Add a type annotation to the variable oWithMethodsNested.
-!!! related TS9034 isolatedDeclarationErrorsObjects.ts:32:9: Add a return type to the method
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:27:12: Add a type annotation to the variable oWithMethodsNested.
+!!! related TS9035 isolatedDeclarationErrorsObjects.ts:32:9: Add a return type to the method
}
}
@@ -92,7 +92,7 @@ isolatedDeclarationErrorsObjects.ts(84,9): error TS9015: Objects that contain sp
get singleGetterBad() { return 0 },
~~~~~~~~~~~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9032 isolatedDeclarationErrorsObjects.ts:39:9: Add a return type to the get accessor declaration.
+!!! related TS9033 isolatedDeclarationErrorsObjects.ts:39:9: Add a return type to the get accessor declaration.
set singleSetterBad(value) { },
~~~~~~~~~~~~~~~
!!! error TS7032: Property 'singleSetterBad' implicitly has type 'any', because its set accessor lacks a parameter type annotation.
@@ -100,13 +100,13 @@ isolatedDeclarationErrorsObjects.ts(84,9): error TS9015: Objects that contain sp
!!! error TS7006: Parameter 'value' implicitly has an 'any' type.
~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9033 isolatedDeclarationErrorsObjects.ts:40:9: Add a type to parameter of the set accessor declaration.
+!!! related TS9034 isolatedDeclarationErrorsObjects.ts:40:9: Add a type to parameter of the set accessor declaration.
get getSetBad() { return 0 },
~~~~~~~~~
!!! error TS9009: At least one accessor must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9033 isolatedDeclarationErrorsObjects.ts:43:9: Add a type to parameter of the set accessor declaration.
-!!! related TS9032 isolatedDeclarationErrorsObjects.ts:42:9: Add a return type to the get accessor declaration.
+!!! related TS9034 isolatedDeclarationErrorsObjects.ts:43:9: Add a type to parameter of the set accessor declaration.
+!!! related TS9033 isolatedDeclarationErrorsObjects.ts:42:9: Add a return type to the get accessor declaration.
set getSetBad(value) { },
get getSetOk(): number { return 0 },
@@ -131,11 +131,11 @@ isolatedDeclarationErrorsObjects.ts(84,9): error TS9015: Objects that contain sp
[1 + 3]: 1,
~~~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:62:14: Add a type annotation to the variable oWithComputedProperties.
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:62:14: Add a type annotation to the variable oWithComputedProperties.
[prop(2)]: 2,
~~~~~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:62:14: Add a type annotation to the variable oWithComputedProperties.
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:62:14: Add a type annotation to the variable oWithComputedProperties.
[s]: 1,
[E.V]: 1,
[str]: 0,
@@ -148,12 +148,12 @@ isolatedDeclarationErrorsObjects.ts(84,9): error TS9015: Objects that contain sp
...part,
~~~~~~~
!!! error TS9015: Objects that contain spread assignments can't be inferred with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:73:14: Add a type annotation to the variable oWithSpread.
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:73:14: Add a type annotation to the variable oWithSpread.
c: 1,
part,
~~~~
!!! error TS9016: Objects that contain shorthand properties can't be inferred with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:73:14: Add a type annotation to the variable oWithSpread.
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:73:14: Add a type annotation to the variable oWithSpread.
}
@@ -163,7 +163,7 @@ isolatedDeclarationErrorsObjects.ts(84,9): error TS9015: Objects that contain sp
...part,
~~~~~~~
!!! error TS9015: Objects that contain spread assignments can't be inferred with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsObjects.ts:81:14: Add a type annotation to the variable oWithSpread2.
+!!! related TS9028 isolatedDeclarationErrorsObjects.ts:81:14: Add a type annotation to the variable oWithSpread2.
},
c: 1,
}
diff --git a/tests/baselines/reference/isolatedDeclarationErrorsReturnTypes.errors.txt b/tests/baselines/reference/isolatedDeclarationErrorsReturnTypes.errors.txt
index 91d5732f5600c..76fb524f7a55c 100644
--- a/tests/baselines/reference/isolatedDeclarationErrorsReturnTypes.errors.txt
+++ b/tests/baselines/reference/isolatedDeclarationErrorsReturnTypes.errors.txt
@@ -90,57 +90,57 @@ isolatedDeclarationErrorsReturnTypes.ts(181,58): error TS9007: Function must hav
export const fnExpressionConstVariable = function foo() { return 0;}
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:2:14: Add a type annotation to the variable fnExpressionConstVariable.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:2:51: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:2:14: Add a type annotation to the variable fnExpressionConstVariable.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:2:51: Add a return type to the function expression.
export const fnArrowConstVariable = () => "S";
~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:3:14: Add a type annotation to the variable fnArrowConstVariable.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:3:37: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:3:14: Add a type annotation to the variable fnArrowConstVariable.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:3:37: Add a return type to the function expression.
export let fnExpressionLetVariable = function foo() { return 0;}
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:5:12: Add a type annotation to the variable fnExpressionLetVariable.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:5:47: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:5:12: Add a type annotation to the variable fnExpressionLetVariable.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:5:47: Add a return type to the function expression.
export let fnArrowLetVariable = () => "S";
~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:6:12: Add a type annotation to the variable fnArrowLetVariable.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:6:33: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:6:12: Add a type annotation to the variable fnArrowLetVariable.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:6:33: Add a return type to the function expression.
export var fnExpressionVarVariable = function foo() { return 0;}
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:8:12: Add a type annotation to the variable fnExpressionVarVariable.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:8:47: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:8:12: Add a type annotation to the variable fnExpressionVarVariable.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:8:47: Add a return type to the function expression.
export var fnArrowVarVariable = () => "S";
~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:9:12: Add a type annotation to the variable fnArrowVarVariable.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:9:33: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:9:12: Add a type annotation to the variable fnArrowVarVariable.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:9:33: Add a return type to the function expression.
// No Errors
export const fnExpressionConstVariableOk = function foo(): number { return 0;}
export const fnArrowConstVariableOk = (cb = function(){ }): string => "S";
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:13:40: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:13:45: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:13:40: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:13:45: Add a return type to the function expression.
export let fnExpressionLetVariableOk = function foo(): number { return 0;}
export let fnArrowLetVariableOk = (cb = function(){ }): string => "S";
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:16:36: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:16:41: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:16:36: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:16:41: Add a return type to the function expression.
export var fnExpressionVarVariableOk = function foo(): number { return 0;}
export var fnArrowVarVariableOk = (cb = function(){ }): string => "S";
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:19:36: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:19:41: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:19:36: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:19:41: Add a return type to the function expression.
// Not exported
const fnExpressionConstVariableInternal = function foo() { return 0;}
@@ -158,44 +158,44 @@ isolatedDeclarationErrorsReturnTypes.ts(181,58): error TS9007: Function must hav
fnExpression = function foo() { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:34:5: Add a type annotation to the property fnExpression.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:34:29: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:34:5: Add a type annotation to the property fnExpression.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:34:29: Add a return type to the function expression.
fnArrow = () => "S";
~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:35:5: Add a type annotation to the property fnArrow.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:35:15: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:35:5: Add a type annotation to the property fnArrow.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:35:15: Add a return type to the function expression.
protected fnExpressionProtected = function foo() { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:36:15: Add a type annotation to the property fnExpressionProtected.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:36:48: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:36:15: Add a type annotation to the property fnExpressionProtected.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:36:48: Add a return type to the function expression.
protected fnArrowProtected = () => "S";
~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:37:15: Add a type annotation to the property fnArrowProtected.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:37:34: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:37:15: Add a type annotation to the property fnArrowProtected.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:37:34: Add a return type to the function expression.
static fnStaticExpression = function foo() { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:39:12: Add a type annotation to the property fnStaticExpression.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:39:42: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:39:12: Add a type annotation to the property fnStaticExpression.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:39:42: Add a return type to the function expression.
static fnStaticArrow = () => "S";
~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:40:12: Add a type annotation to the property fnStaticArrow.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:40:28: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:40:12: Add a type annotation to the property fnStaticArrow.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:40:28: Add a return type to the function expression.
protected static fnStaticExpressionProtected = function foo() { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:41:22: Add a type annotation to the property fnStaticExpressionProtected.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:41:61: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:41:22: Add a type annotation to the property fnStaticExpressionProtected.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:41:61: Add a return type to the function expression.
protected static fnStaticArrowProtected = () => "S";
~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:42:22: Add a type annotation to the property fnStaticArrowProtected.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:42:47: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:42:22: Add a type annotation to the property fnStaticArrowProtected.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:42:47: Add a return type to the function expression.
// Have annotation, so ok
fnExpressionOk = function foo(): number { return 0; }
@@ -223,35 +223,35 @@ isolatedDeclarationErrorsReturnTypes.ts(181,58): error TS9007: Function must hav
fnExpression = function foo() { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:67:5: Add a type annotation to the property fnExpression.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:67:29: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:67:5: Add a type annotation to the property fnExpression.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:67:29: Add a return type to the function expression.
fnArrow = () => "S";
~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:68:5: Add a type annotation to the property fnArrow.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:68:15: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:68:5: Add a type annotation to the property fnArrow.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:68:15: Add a return type to the function expression.
static fnStaticExpression = function foo() { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:70:12: Add a type annotation to the property fnStaticExpression.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:70:42: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:70:12: Add a type annotation to the property fnStaticExpression.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:70:42: Add a return type to the function expression.
static fnStaticArrow = () => "S";
~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:71:12: Add a type annotation to the property fnStaticArrow.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:71:28: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:71:12: Add a type annotation to the property fnStaticArrow.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:71:28: Add a return type to the function expression.
protected static fnStaticExpressionProtected = function foo() { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:73:22: Add a type annotation to the property fnStaticExpressionProtected.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:73:61: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:73:22: Add a type annotation to the property fnStaticExpressionProtected.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:73:61: Add a return type to the function expression.
protected static fnStaticArrowProtected = () => "S";
~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:74:22: Add a type annotation to the property fnStaticArrowProtected.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:74:47: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:74:22: Add a type annotation to the property fnStaticArrowProtected.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:74:47: Add a return type to the function expression.
private fnExpressionPrivate = function foo() { return 0; }
private fnArrowPrivate = () => "S";
@@ -289,93 +289,93 @@ isolatedDeclarationErrorsReturnTypes.ts(181,58): error TS9007: Function must hav
export const fnParamExpressionConstVariable = function foo(cb = function(){ }) { return 0;}
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:109:14: Add a type annotation to the variable fnParamExpressionConstVariable.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:109:56: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:109:14: Add a type annotation to the variable fnParamExpressionConstVariable.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:109:56: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:109:60: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:109:65: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:109:60: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:109:65: Add a return type to the function expression.
export const fnParamArrowConstVariable = (cb = () => 1) => "S";
~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:110:14: Add a type annotation to the variable fnParamArrowConstVariable.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:110:42: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:110:14: Add a type annotation to the variable fnParamArrowConstVariable.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:110:42: Add a return type to the function expression.
~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:110:43: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:110:48: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:110:43: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:110:48: Add a return type to the function expression.
export let fnParamExpressionLetVariable = function foo(cb = function(){ }) { return 0;}
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:112:12: Add a type annotation to the variable fnParamExpressionLetVariable.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:112:52: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:112:12: Add a type annotation to the variable fnParamExpressionLetVariable.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:112:52: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:112:56: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:112:61: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:112:56: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:112:61: Add a return type to the function expression.
export let fnParamArrowLetVariable = (cb = () => 1) => "S";
~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:113:12: Add a type annotation to the variable fnParamArrowLetVariable.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:113:38: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:113:12: Add a type annotation to the variable fnParamArrowLetVariable.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:113:38: Add a return type to the function expression.
~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:113:39: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:113:44: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:113:39: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:113:44: Add a return type to the function expression.
export var fnParamExpressionVarVariable = function foo(cb = function(){ }) { return 0;}
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:115:12: Add a type annotation to the variable fnParamExpressionVarVariable.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:115:52: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:115:12: Add a type annotation to the variable fnParamExpressionVarVariable.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:115:52: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:115:56: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:115:61: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:115:56: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:115:61: Add a return type to the function expression.
export var fnParamArrowVarVariable = (cb = () => 1) => "S";
~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:116:12: Add a type annotation to the variable fnParamArrowVarVariable.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:116:38: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:116:12: Add a type annotation to the variable fnParamArrowVarVariable.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:116:38: Add a return type to the function expression.
~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:116:39: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:116:44: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:116:39: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:116:44: Add a return type to the function expression.
// In Function Variables - No annotations on parameter
export const fnParamExpressionConstVariableOwnerHasReturnType = function foo(cb = function(){ }): number { return 0;}
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:119:78: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:119:83: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:119:78: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:119:83: Add a return type to the function expression.
export const fnParamArrowConstVariableOwnerHasReturnType = (cb = function(){ }): string => "S";
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:120:61: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:120:66: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:120:61: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:120:66: Add a return type to the function expression.
export let fnParamExpressionLetVariableOwnerHasReturnType = function foo(cb = function(){ }): number { return 0;}
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:122:74: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:122:79: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:122:74: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:122:79: Add a return type to the function expression.
export let fnParamArrowLetVariableOwnerHasReturnType = (cb = function(){ }): string => "S";
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:123:57: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:123:62: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:123:57: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:123:62: Add a return type to the function expression.
export var fnParamExpressionVarVariableOwnerHasReturnType = function foo(cb = function(){ }): number { return 0;}
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:125:74: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:125:79: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:125:74: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:125:79: Add a return type to the function expression.
export var fnParamArrowVarVariableOwnerHasReturnType = (cb = function(){ }): string => "S";
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:126:57: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:126:62: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:126:57: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:126:62: Add a return type to the function expression.
// No Errors
export const fnParamExpressionConstVariableOk = function foo(cb = function(): void{ }): number { return 0;}
@@ -390,59 +390,59 @@ isolatedDeclarationErrorsReturnTypes.ts(181,58): error TS9007: Function must hav
export const fnParamExpressionConstVariableInternal = function foo(cb = function(){ }) { return 0;}
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:138:14: Add a type annotation to the variable fnParamExpressionConstVariableInternal.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:138:64: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:138:14: Add a type annotation to the variable fnParamExpressionConstVariableInternal.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:138:64: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:138:68: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:138:73: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:138:68: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:138:73: Add a return type to the function expression.
export const fnParamArrowConstVariableInternal = (cb = () => 1) => "S";
~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:139:14: Add a type annotation to the variable fnParamArrowConstVariableInternal.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:139:50: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:139:14: Add a type annotation to the variable fnParamArrowConstVariableInternal.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:139:50: Add a return type to the function expression.
~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:139:51: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:139:56: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:139:51: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:139:56: Add a return type to the function expression.
export let fnParamExpressionLetVariableInternal = function foo(cb = function(){ }) { return 0;}
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:141:12: Add a type annotation to the variable fnParamExpressionLetVariableInternal.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:141:60: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:141:12: Add a type annotation to the variable fnParamExpressionLetVariableInternal.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:141:60: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:141:64: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:141:69: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:141:64: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:141:69: Add a return type to the function expression.
export let fnParamArrowLetVariableInternal = (cb = () => 1) => "S";
~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:142:12: Add a type annotation to the variable fnParamArrowLetVariableInternal.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:142:46: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:142:12: Add a type annotation to the variable fnParamArrowLetVariableInternal.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:142:46: Add a return type to the function expression.
~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:142:47: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:142:52: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:142:47: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:142:52: Add a return type to the function expression.
export var fnParamExpressionVarVariableInternal = function foo(cb = function(){ }) { return 0;}
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:144:12: Add a type annotation to the variable fnParamExpressionVarVariableInternal.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:144:60: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:144:12: Add a type annotation to the variable fnParamExpressionVarVariableInternal.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:144:60: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:144:64: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:144:69: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:144:64: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:144:69: Add a return type to the function expression.
export var fnParamArrowVarVariableInternal = (cb = () => 1) => "S";
~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationErrorsReturnTypes.ts:145:12: Add a type annotation to the variable fnParamArrowVarVariableInternal.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:145:46: Add a return type to the function expression.
+!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:145:12: Add a type annotation to the variable fnParamArrowVarVariableInternal.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:145:46: Add a return type to the function expression.
~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:145:47: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:145:52: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:145:47: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:145:52: Add a return type to the function expression.
// In Function Fields
@@ -451,162 +451,162 @@ isolatedDeclarationErrorsReturnTypes.ts(181,58): error TS9007: Function must hav
fnExpression = function foo(cb = function(){ }) { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:151:5: Add a type annotation to the property fnExpression.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:151:29: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:151:5: Add a type annotation to the property fnExpression.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:151:29: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:151:33: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:151:38: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:151:33: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:151:38: Add a return type to the function expression.
fnArrow = (cb = function(){ }) => "S";
~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:152:5: Add a type annotation to the property fnArrow.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:152:15: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:152:5: Add a type annotation to the property fnArrow.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:152:15: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:152:16: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:152:21: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:152:16: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:152:21: Add a return type to the function expression.
protected fnExpressionProtected = function foo(cb = function(){ }) { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:153:15: Add a type annotation to the property fnExpressionProtected.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:153:48: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:153:15: Add a type annotation to the property fnExpressionProtected.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:153:48: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:153:52: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:153:57: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:153:52: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:153:57: Add a return type to the function expression.
protected fnArrowProtected = (cb = function(){ }) => "S";
~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:154:15: Add a type annotation to the property fnArrowProtected.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:154:34: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:154:15: Add a type annotation to the property fnArrowProtected.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:154:34: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:154:35: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:154:40: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:154:35: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:154:40: Add a return type to the function expression.
static fnStaticExpression = function foo(cb = function(){ }) { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:156:12: Add a type annotation to the property fnStaticExpression.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:156:42: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:156:12: Add a type annotation to the property fnStaticExpression.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:156:42: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:156:46: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:156:51: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:156:46: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:156:51: Add a return type to the function expression.
static fnStaticArrow = (cb = function(){ }) => "S";
~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:157:12: Add a type annotation to the property fnStaticArrow.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:157:28: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:157:12: Add a type annotation to the property fnStaticArrow.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:157:28: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:157:29: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:157:34: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:157:29: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:157:34: Add a return type to the function expression.
protected static fnStaticExpressionProtected = function foo(cb = function(){ }) { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:158:22: Add a type annotation to the property fnStaticExpressionProtected.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:158:61: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:158:22: Add a type annotation to the property fnStaticExpressionProtected.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:158:61: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:158:65: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:158:70: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:158:65: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:158:70: Add a return type to the function expression.
protected static fnStaticArrowProtected = (cb = function(){ }) => "S";
~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:159:22: Add a type annotation to the property fnStaticArrowProtected.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:159:47: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:159:22: Add a type annotation to the property fnStaticArrowProtected.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:159:47: Add a return type to the function expression.
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:159:48: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:159:53: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:159:48: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:159:53: Add a return type to the function expression.
// Have annotation on owner
fnExpressionMethodHasReturn = function foo(cb = function(){ }): number { return 0; }
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:162:48: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:162:53: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:162:48: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:162:53: Add a return type to the function expression.
fnArrowMethodHasReturn = (cb = function(){ }): string => "S";
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:163:31: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:163:36: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:163:31: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:163:36: Add a return type to the function expression.
protected fnExpressionProtectedMethodHasReturn = function foo(cb = function(){ }): number { return 0; }
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:164:67: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:164:72: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:164:67: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:164:72: Add a return type to the function expression.
protected fnArrowProtectedMethodHasReturn = (cb = function(){ }): string => "S";
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:165:50: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:165:55: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:165:50: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:165:55: Add a return type to the function expression.
static fnStaticExpressionMethodHasReturn = function foo(cb = function(){ }): number { return 0; }
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:167:61: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:167:66: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:167:61: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:167:66: Add a return type to the function expression.
static fnStaticArrowMethodHasReturn = (cb = function(){ }): string => "S";
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:168:44: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:168:49: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:168:44: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:168:49: Add a return type to the function expression.
protected static fnStaticExpressionProtectedMethodHasReturn = function foo(cb = function(){ }): number { return 0; }
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:169:80: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:169:85: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:169:80: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:169:85: Add a return type to the function expression.
protected static fnStaticArrowProtectedMethodHasReturn = (cb = function(){ }): string => "S";
~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9028 isolatedDeclarationErrorsReturnTypes.ts:170:63: Add a type annotation to the parameter cb.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:170:68: Add a return type to the function expression.
+!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:170:63: Add a type annotation to the parameter cb.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:170:68: Add a return type to the function expression.
// Have annotation only on parameter
fnExpressionOnlyOnParam = function foo(cb = function(): void { }) { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:173:5: Add a type annotation to the property fnExpressionOnlyOnParam.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:173:40: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:173:5: Add a type annotation to the property fnExpressionOnlyOnParam.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:173:40: Add a return type to the function expression.
fnArrowOnlyOnParam = (cb = function(): void { }) => "S";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:174:5: Add a type annotation to the property fnArrowOnlyOnParam.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:174:26: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:174:5: Add a type annotation to the property fnArrowOnlyOnParam.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:174:26: Add a return type to the function expression.
protected fnExpressionProtectedOnlyOnParam = function foo(cb = function(): void { }) { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:175:15: Add a type annotation to the property fnExpressionProtectedOnlyOnParam.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:175:59: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:175:15: Add a type annotation to the property fnExpressionProtectedOnlyOnParam.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:175:59: Add a return type to the function expression.
protected fnArrowProtectedOnlyOnParam = (cb = function(): void { }) => "S";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:176:15: Add a type annotation to the property fnArrowProtectedOnlyOnParam.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:176:45: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:176:15: Add a type annotation to the property fnArrowProtectedOnlyOnParam.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:176:45: Add a return type to the function expression.
static fnStaticExpressionOnlyOnParam = function foo(cb = function(): void{ }) { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:178:12: Add a type annotation to the property fnStaticExpressionOnlyOnParam.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:178:53: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:178:12: Add a type annotation to the property fnStaticExpressionOnlyOnParam.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:178:53: Add a return type to the function expression.
static fnStaticArrowOnlyOnParam = (cb = function(): void{ }) => "S";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:179:12: Add a type annotation to the property fnStaticArrowOnlyOnParam.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:179:39: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:179:12: Add a type annotation to the property fnStaticArrowOnlyOnParam.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:179:39: Add a return type to the function expression.
protected static fnStaticExpressionProtectedOnlyOnParam = function foo(cb = function(): void{ }) { return 0; }
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:180:22: Add a type annotation to the property fnStaticExpressionProtectedOnlyOnParam.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:180:72: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:180:22: Add a type annotation to the property fnStaticExpressionProtectedOnlyOnParam.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:180:72: Add a return type to the function expression.
protected static fnStaticArrowProtectedOnlyOnParam = (cb = function(): void{ }) => "S";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9029 isolatedDeclarationErrorsReturnTypes.ts:181:22: Add a type annotation to the property fnStaticArrowProtectedOnlyOnParam.
-!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:181:58: Add a return type to the function expression.
+!!! related TS9030 isolatedDeclarationErrorsReturnTypes.ts:181:22: Add a type annotation to the property fnStaticArrowProtectedOnlyOnParam.
+!!! related TS9031 isolatedDeclarationErrorsReturnTypes.ts:181:58: Add a return type to the function expression.
// Have annotation, so ok
fnExpressionOk = function foo(cb = function(): void { }): number { return 0; }
diff --git a/tests/baselines/reference/isolatedDeclarationLazySymbols.errors.txt b/tests/baselines/reference/isolatedDeclarationLazySymbols.errors.txt
index bb46d672d1099..71f85bbfc65f3 100644
--- a/tests/baselines/reference/isolatedDeclarationLazySymbols.errors.txt
+++ b/tests/baselines/reference/isolatedDeclarationLazySymbols.errors.txt
@@ -8,7 +8,7 @@ isolatedDeclarationLazySymbols.ts(21,5): error TS9014: Computed properties must
export function foo() {
~~~
!!! error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
-!!! related TS9031 isolatedDeclarationLazySymbols.ts:1:17: Add a return type to the function declaration.
+!!! related TS9032 isolatedDeclarationLazySymbols.ts:1:17: Add a return type to the function declaration.
}
@@ -35,6 +35,6 @@ isolatedDeclarationLazySymbols.ts(21,5): error TS9014: Computed properties must
[o['prop.inner']]:"A",
~~~~~~~~~~~~~~~~~
!!! error TS9014: Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
-!!! related TS9027 isolatedDeclarationLazySymbols.ts:20:12: Add a type annotation to the variable oo.
+!!! related TS9028 isolatedDeclarationLazySymbols.ts:20:12: Add a type annotation to the variable oo.
[o.prop.inner]: "B",
}
\ No newline at end of file
diff --git a/tests/baselines/reference/isolatedDeclarationsAddUndefined.errors.txt b/tests/baselines/reference/isolatedDeclarationsAddUndefined.errors.txt
index 7c65bbefe209f..c62d9825e6d81 100644
--- a/tests/baselines/reference/isolatedDeclarationsAddUndefined.errors.txt
+++ b/tests/baselines/reference/isolatedDeclarationsAddUndefined.errors.txt
@@ -1,5 +1,5 @@
file1.ts(4,11): error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-file2.ts(1,26): error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+file2.ts(1,26): error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
==== file1.ts (1 errors) ====
@@ -9,7 +9,7 @@ file2.ts(1,26): error TS9025: Declaration emit for this parameter requires impli
c3? = 1 as N;
~~~~~~
!!! error TS9012: Property must have an explicit type annotation with --isolatedDeclarations.
-!!! related TS9029 file1.ts:4:5: Add a type annotation to the property c3.
+!!! related TS9030 file1.ts:4:5: Add a type annotation to the property c3.
readonly r = 1;
f = 2;
}
@@ -17,8 +17,8 @@ file2.ts(1,26): error TS9025: Declaration emit for this parameter requires impli
==== file2.ts (1 errors) ====
export function foo(p = (ip = 10, v: number): void => {}): void{
~~~~~~~
-!!! error TS9025: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
-!!! related TS9028 file2.ts:1:26: Add a type annotation to the parameter ip.
+!!! error TS9026: Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.
+!!! related TS9029 file2.ts:1:26: Add a type annotation to the parameter ip.
}
export class Bar2 {
readonly r = 1;
diff --git a/tests/cases/compiler/declarationEmitBundleWithAmbientReferences.ts b/tests/cases/compiler/declarationEmitBundleWithAmbientReferences.ts
index b65dc1022117f..7505e0966f8d6 100644
--- a/tests/cases/compiler/declarationEmitBundleWithAmbientReferences.ts
+++ b/tests/cases/compiler/declarationEmitBundleWithAmbientReferences.ts
@@ -2,7 +2,7 @@
// @declaration: true
// @module: amd
// @outFile: out/datastore.bundle.js
-// @isolatedDeclarationFixedDiffReason: TSC adds type reference directives.
+// @isolatedDeclarationFixedDiffReason: --noResolve prevents reference directives from being generated.
// @isolatedDeclarationDiffReason: TSC adds type reference directives.
// @filename: lib/lib.d.ts
declare module "lib/result" {
diff --git a/tests/cases/compiler/declarationEmitCrossFileImportTypeOfAmbientModule.ts b/tests/cases/compiler/declarationEmitCrossFileImportTypeOfAmbientModule.ts
index ad7ddb8ed9e41..9f9461314edf8 100644
--- a/tests/cases/compiler/declarationEmitCrossFileImportTypeOfAmbientModule.ts
+++ b/tests/cases/compiler/declarationEmitCrossFileImportTypeOfAmbientModule.ts
@@ -1,5 +1,4 @@
// @declaration: true
-// @isolatedDeclarationFixedDiffReason: TSC adds type reference directives.
// @filename: types/component.d.ts
declare module '@namespace/component' {
export class Foo {}
diff --git a/tests/cases/compiler/importTypeGenericArrowTypeParenthesized.ts b/tests/cases/compiler/importTypeGenericArrowTypeParenthesized.ts
index 585407c754bec..d8a212b1e8674 100644
--- a/tests/cases/compiler/importTypeGenericArrowTypeParenthesized.ts
+++ b/tests/cases/compiler/importTypeGenericArrowTypeParenthesized.ts
@@ -1,6 +1,5 @@
// @declaration: true
// @filename: module.d.ts
-// @isolatedDeclarationFixedDiffReason: TSC adds type reference directives.
declare module "module" {
export interface Modifier { }
diff --git a/tests/cases/compiler/privacyCannotNameAccessorDeclFile.ts b/tests/cases/compiler/privacyCannotNameAccessorDeclFile.ts
index 70369c478958b..5e039561176e2 100644
--- a/tests/cases/compiler/privacyCannotNameAccessorDeclFile.ts
+++ b/tests/cases/compiler/privacyCannotNameAccessorDeclFile.ts
@@ -1,7 +1,7 @@
// @target: ES5
// @module: commonjs
// @declaration: true
-
+// @isolatedDeclarationFixedDiffReason: explicit reference directives are ommitted.
// @Filename: privacyCannotNameAccessorDeclFile_GlobalWidgets.ts
declare module "GlobalWidgets" {
export class Widget3 {
diff --git a/tests/cases/compiler/privacyCannotNameVarTypeDeclFile.ts b/tests/cases/compiler/privacyCannotNameVarTypeDeclFile.ts
index 1135e3c86f468..3b845704c8bb3 100644
--- a/tests/cases/compiler/privacyCannotNameVarTypeDeclFile.ts
+++ b/tests/cases/compiler/privacyCannotNameVarTypeDeclFile.ts
@@ -1,6 +1,6 @@
// @module: commonjs
// @declaration: true
-
+// @isolatedDeclarationFixedDiffReason: explicit reference directives are ommitted.
// @Filename: privacyCannotNameVarTypeDeclFile_GlobalWidgets.ts
declare module "GlobalWidgets" {
diff --git a/tests/cases/compiler/privacyFunctionCannotNameParameterTypeDeclFile.ts b/tests/cases/compiler/privacyFunctionCannotNameParameterTypeDeclFile.ts
index dd5eaf82bdf27..3da5cff03d904 100644
--- a/tests/cases/compiler/privacyFunctionCannotNameParameterTypeDeclFile.ts
+++ b/tests/cases/compiler/privacyFunctionCannotNameParameterTypeDeclFile.ts
@@ -1,6 +1,6 @@
// @module: commonjs
// @declaration: true
-
+// @isolatedDeclarationFixedDiffReason: explicit reference directives are ommitted.
// @Filename: privacyFunctionCannotNameParameterTypeDeclFile_GlobalWidgets.ts
declare module "GlobalWidgets" {
diff --git a/tests/cases/compiler/privacyFunctionCannotNameReturnTypeDeclFile.ts b/tests/cases/compiler/privacyFunctionCannotNameReturnTypeDeclFile.ts
index cb1993286a45f..990cddf74ff5b 100644
--- a/tests/cases/compiler/privacyFunctionCannotNameReturnTypeDeclFile.ts
+++ b/tests/cases/compiler/privacyFunctionCannotNameReturnTypeDeclFile.ts
@@ -1,6 +1,6 @@
// @module: commonjs
// @declaration: true
-
+// @isolatedDeclarationFixedDiffReason: explicit reference directives are ommitted.
// @Filename: privacyFunctionReturnTypeDeclFile_GlobalWidgets.ts
declare module "GlobalWidgets" {
diff --git a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions2.ts b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions2.ts
index 6f0bbd5ef75ce..e5126552d222b 100644
--- a/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions2.ts
+++ b/tests/cases/conformance/node/allowJs/nodeModulesAllowJsImportHelpersCollisions2.ts
@@ -4,7 +4,6 @@
// @allowJs: true
// @checkJs: true
// @outDir: out
-// @isolatedDeclarationFixedDiffReason: TSC adds type reference directives.
// @isolatedDeclarationDiffReason:TSC adds type reference directives.
// @filename: subfolder/index.ts
// cjs format file
diff --git a/tests/cases/conformance/node/nodeModulesImportAssignments.ts b/tests/cases/conformance/node/nodeModulesImportAssignments.ts
index 9e4d2dd29eb60..ed07113e4f4e2 100644
--- a/tests/cases/conformance/node/nodeModulesImportAssignments.ts
+++ b/tests/cases/conformance/node/nodeModulesImportAssignments.ts
@@ -1,6 +1,5 @@
// @module: node16,nodenext
// @declaration: true
-// @isolatedDeclarationFixedDiffReason: TSC adds type reference directives.
// @isolatedDeclarationDiffReason:TSC adds type reference directives.
// @filename: subfolder/index.ts
// cjs format file
diff --git a/tests/cases/conformance/node/nodeModulesImportHelpersCollisions2.ts b/tests/cases/conformance/node/nodeModulesImportHelpersCollisions2.ts
index ccf9008ca7406..f4d094000173a 100644
--- a/tests/cases/conformance/node/nodeModulesImportHelpersCollisions2.ts
+++ b/tests/cases/conformance/node/nodeModulesImportHelpersCollisions2.ts
@@ -1,7 +1,6 @@
// @module: node16,nodenext
// @declaration: true
// @importHelpers: true
-// @isolatedDeclarationFixedDiffReason: TSC adds type reference directives.
// @isolatedDeclarationDiffReason:TSC adds type reference directives.
// @filename: subfolder/index.ts
// cjs format file
diff --git a/tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts b/tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts
index e7239f67abe73..26e5a6a662af0 100644
--- a/tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts
+++ b/tests/cases/conformance/node/nodeModulesImportHelpersCollisions3.ts
@@ -1,7 +1,6 @@
// @module: node16,nodenext
// @declaration: true
// @importHelpers: true
-// @isolatedDeclarationFixedDiffReason: TSC adds type reference directives.
// @isolatedDeclarationDiffReason:TSC adds type reference directives.
// @filename: subfolder/index.ts
// cjs format file
diff --git a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit7.ts b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit7.ts
index 5260cc2ae7792..918429ce392d1 100644
--- a/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit7.ts
+++ b/tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit7.ts
@@ -2,6 +2,7 @@
// @module: node16,nodenext
// @declaration: true
// @outDir: out
+// @isolatedDeclarationFixedDiffReason: explicit reference directives are ommitted.
// @filename: /node_modules/pkg/package.json
{
"name": "pkg",